The find utility needs a path parameter
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Fri, 05 Mar 2010 22:04:25 +0100
changeset 116 ae784a3a45b1
parent 115 47731bdd72c9
child 117 5f3a34ba6489
The find utility needs a path parameter committer: Markus Bröker <mbroeker@largo.homelinux.org>
Makefile
--- a/Makefile
+++ b/Makefile
@@ -338,20 +338,20 @@
 
 clean:
 ifdef FIND
-	$(FIND) -name '*~' -exec $(RM) {} \;
-	$(FIND) -name '*.[oa]' -exec $(RM) {} \;
-	$(FIND) -name '*.gcov' -exec $(RM) {} \;
-	$(FIND) -name '*.gcda' -exec $(RM) {} \;
-	$(FIND) -name '*.gcno' -exec $(RM) {} \;
-	$(FIND) -name 'gmon.out' -exec $(RM) {} \;
+	$(FIND) . -name '*~' -exec $(RM) {} \;
+	$(FIND) . -name '*.[oa]' -exec $(RM) {} \;
+	$(FIND) . -name '*.gcov' -exec $(RM) {} \;
+	$(FIND) . -name '*.gcda' -exec $(RM) {} \;
+	$(FIND) . -name '*.gcno' -exec $(RM) {} \;
+	$(FIND) . -name 'gmon.out' -exec $(RM) {} \;
 endif
 	$(RM) $(TARGET)
 
 beauty:
 ifdef FIND
-	$(FIND) -name '*.[ch]' -exec indent {} \;
-	$(FIND) -name '*.[ch]' -exec eraser {} \;
-	$(FIND) -name '*.java' -exec eraser {} \;
-	$(FIND) -name 'Makefile*' -exec eraser {} \;
+	$(FIND) . -name '*.[ch]' -exec indent {} \;
+	$(FIND) . -name '*.[ch]' -exec eraser {} \;
+	$(FIND) . -name '*.java' -exec eraser {} \;
+	$(FIND) . -name 'Makefile*' -exec eraser {} \;
 endif
 	@make clean