From: Jan Janak Date: Sun, 22 Nov 2009 12:55:35 +0000 (+0100) Subject: makefile: Declare clean target as phony. X-Git-Tag: 0.1~355 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=685a8ad23be3ceac8387e32f49a4a387cae2434d;p=notmuch.git makefile: Declare clean target as phony. 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 --- diff --git a/Makefile b/Makefile index ae8bff13..2cd1b1ba 100644 --- 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