]> git.notmuchmail.org Git - notmuch/commitdiff
Makefile: Hide away auto-generated dependency file as .depends.
authorCarl Worth <cworth@cworth.org>
Tue, 10 Nov 2009 00:24:50 +0000 (16:24 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 10 Nov 2009 00:24:50 +0000 (16:24 -0800)
Instead of the old name of Makefile.dep. The idea being that the
user really doesn't need to see this by default, (and if debugging
the Makefile, the rules will make the name obvious).

.gitignore
Makefile

index 584bec601deba197cb7c895ea77002c7d27b3274..64b56d4c7d2bb3e623c80098e8b3bf3c3c8c4dd8 100644 (file)
@@ -1,4 +1,4 @@
-Makefile.dep
+.depends
 notmuch
 notmuch.1.gz
 
index 1e7f5f2c88a4e6d902573bf4cacc6d13caf03491..a9d91d8667ad83e49b018c6c80e79be2cccd9cd3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,10 +37,10 @@ all: $(PROGS)
 notmuch: $(MAIN) $(LIBRARY)
        $(CC) $(NOTMUCH_LDFLAGS) $^ -o $@
 
-Makefile.dep: *.c lib/*.c lib/*.cc
+.depends: *.c lib/*.c lib/*.cc
        $(CXX) -M $(CPPFLAGS) $(NOTMUCH_DEPENDS_FLAGS) \
        $(NOTMUCH_CXX_DEPENDS_FLAGS) $^ > $@
--include Makefile.dep
+-include .depends
 
 notmuch.1.gz:
        gzip --stdout notmuch.1 > notmuch.1.gz
@@ -52,4 +52,4 @@ install: all notmuch.1.gz
                $(DESTDIR)/etc/bash_completion.d/notmuch
 
 clean:
-       rm -f $(PROGS) lib/*.o *.o Makefile.dep
+       rm -f $(PROGS) lib/*.o *.o .depends