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: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=685a8ad23be3ceac8387e32f49a4a387cae2434d;hp=8aa339ac770f77009593b77dfdc68cff53fa02ae;ds=sidebyside 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