[notmuch] [PATCH] makefile: Declare clean target as phony.

Subject: [notmuch] [PATCH] makefile: Declare clean target as phony.

Date: Sun, 22 Nov 2009 13:55:35 +0100

To: notmuch@notmuchmail.org

Cc:

From: Jan Janak


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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 3553ff4..2d19a6e 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
-- 
1.6.3.3


Thread: