mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
d51b784214
commit
edd25db019
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue