[PATCH] Fix dependency generation for CLI sources
Austin Clements
amdragon at MIT.EDU
Sun Jan 15 12:20:23 PST 2012
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 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile.local b/Makefile.local
index d3bf947..1131dea 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)
--
1.7.7.3
More information about the notmuch
mailing list