makefile: Declare clean target as phony.
authorJan Janak <jan@ryngle.com>
Sun, 22 Nov 2009 12:55:35 +0000 (13:55 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 02:41:31 +0000 (03:41 +0100)
This ensures that make clean always proceeds, even if the user
accidentally creates a file named 'clean'. Also, it ignores errors in
rm and other commands.

Signed-off-by: Jan Janak <jan@ryngle.com>
Makefile

index ae8bff134a154544340bca9558aefe6639ff19d6..2cd1b1bae4af648b07b51a110e08f623868fa66e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,5 +75,6 @@ DEPS := $(SRCS:%.c=.deps/%.d)
 DEPS := $(DEPS:%.cc=.deps/%.d)
 -include $(DEPS)
 
+.PHONY : clean
 clean:
        rm -f $(CLEAN); rm -rf .deps