From: Andre Noll Date: Sun, 20 Apr 2014 00:55:12 +0000 (+0000) Subject: build: Avoid excessive dep generation on Makefile changes. X-Git-Tag: v0.5.4~46^2~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=80bb4541edc2934389045b6729a65bc3f4dd27d9;p=paraslash.git build: Avoid excessive dep generation on Makefile changes. Letting error2 depend on config.h instead of Makefile should be no worse, and it does not cause all dependencies to be recreated in the common case where config.h remains unchanged after reconfiguration. --- diff --git a/Makefile.real b/Makefile.real index 978bebfa..58761a7b 100644 --- a/Makefile.real +++ b/Makefile.real @@ -167,7 +167,7 @@ $(man_dir)/para_%.1: $(ggo_dir)/%.ggo man_util.bash | $(man_dir) $(help2man_dir) $(hostbin_dir)/error2: error2.c | $(hostbin_dir) @[ -z "$(Q)" ] || echo 'HCC $<' $(Q) $(HOSTCC) -o $@ $< -error2.h: $(hostbin_dir)/error2 Makefile +error2.h: $(hostbin_dir)/error2 config.h @[ -z "$(Q)" ] || echo 'ER2 $<' @echo "$(object_executable_matrix)" | $< > $@