From: Austin Clements Date: Sun, 15 Jan 2012 20:20:23 +0000 (-0500) Subject: Fix dependency generation for CLI sources X-Git-Tag: debian/0.12_rc1-1~196 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=edd25db019ada82b2c7499fce337dbed033205cf;hp=d51b7842149dcaedd02c4e5b6ba74a5bccd926a9;p=notmuch Fix dependency generation for CLI sources 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. --- diff --git a/Makefile.local b/Makefile.local index d3bf9478..1131dea8 100644 --- a/Makefile.local +++ b/Makefile.local @@ -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)