* [PATCH] makefile: Declare clean target as phony.
@ 2009-11-22 12:55 Jan Janak
2009-11-23 2:49 ` Carl Worth
0 siblings, 1 reply; 2+ messages in thread
From: Jan Janak @ 2009-11-22 12:55 UTC (permalink / raw)
To: notmuch
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-23 2:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-22 12:55 [PATCH] makefile: Declare clean target as phony Jan Janak
2009-11-23 2:49 ` Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).