]> git.notmuchmail.org Git - notmuch/commitdiff
Fix dependency generation for CLI sources
authorAustin Clements <amdragon@MIT.EDU>
Sun, 15 Jan 2012 20:20:23 +0000 (15:20 -0500)
committerDavid Bremner <bremner@debian.org>
Thu, 19 Jan 2012 13:16:50 +0000 (09:16 -0400)
Previously, the dependency file list was generated before the CLI
sources were added to SRCS, so dependency files weren't generated for
CLI sources.  This moves that code to after the CLI sources are added.

Makefile.local

index d3bf9478b3f75ac165693c03522436de8efcafde..1131dea8ebc90bfd21cc71283560d1f82b7b50f1 100644 (file)
@@ -273,10 +273,6 @@ quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))
        sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \
        rm -f $@.$$$$
 
-DEPS := $(SRCS:%.c=.deps/%.d)
-DEPS := $(DEPS:%.cc=.deps/%.d)
--include $(DEPS)
-
 .PHONY : clean
 clean:
        rm -f $(CLEAN); rm -rf .deps
@@ -350,3 +346,7 @@ install-desktop:
 
 SRCS  := $(SRCS) $(notmuch_client_srcs)
 CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) notmuch.elc
+
+DEPS := $(SRCS:%.c=.deps/%.d)
+DEPS := $(DEPS:%.cc=.deps/%.d)
+-include $(DEPS)