mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
Makefile: Silence compiler errors during dependency generation.
We have a bootstrapping issue with our dependency generation. When the Makefile.config doesn't exist yet, the complete compilation flags are not yet available for passing to the compiler to generate the dependencies. But we don't have explicit rules to create these dependency files, (just the implicit rule that is created by the -include), so we can't control when make will attempt to create them. We do have a dependency of the dependency files on Makefile.config, so make should eventually call the compiler with the correct flags and everything should be good. So in the meantime, silence any complaints.
This commit is contained in:
parent
4b0327004a
commit
40e584ecfc
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -62,13 +62,13 @@ quiet ?= $($1)
|
||||||
|
|
||||||
.deps/%.d: %.c $(all_deps)
|
.deps/%.d: %.c $(all_deps)
|
||||||
@set -e; rm -f $@; mkdir -p $$(dirname $@) ; \
|
@set -e; rm -f $@; mkdir -p $$(dirname $@) ; \
|
||||||
$(CC) -M $(CPPFLAGS) $(FINAL_CFLAGS) $< > $@.$$$$; \
|
$(CC) -M $(CPPFLAGS) $(FINAL_CFLAGS) $< > $@.$$$$ 2>/dev/null ; \
|
||||||
sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \
|
sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \
|
||||||
rm -f $@.$$$$
|
rm -f $@.$$$$
|
||||||
|
|
||||||
.deps/%.d: %.cc $(all_deps)
|
.deps/%.d: %.cc $(all_deps)
|
||||||
@set -e; rm -f $@; mkdir -p $$(dirname $@) ; \
|
@set -e; rm -f $@; mkdir -p $$(dirname $@) ; \
|
||||||
$(CXX) -M $(CPPFLAGS) $(FINAL_CXXFLAGS) $< > $@.$$$$; \
|
$(CXX) -M $(CPPFLAGS) $(FINAL_CXXFLAGS) $< > $@.$$$$ 2>/dev/null ; \
|
||||||
sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \
|
sed 's,'$$(basename $*)'\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \
|
||||||
rm -f $@.$$$$
|
rm -f $@.$$$$
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue