From: Andre Noll Date: Fri, 20 Dec 2013 10:29:58 +0000 (+0100) Subject: Rebuild error2.h on Makefile changes. X-Git-Tag: v0.5.1~1^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=abb0804473161fbce0f98c627138c146fe1b6a95 Rebuild error2.h on Makefile changes. Re-running configure without a subsequent make clean currently fails if the set of objects has changed since the last run. This happens for example if a different cryptolib was requested with --enable-cryptolib, or if different libraries were detected by configure. The problem is that error2.h is not updated according to the new set of objects. Letting error2.h depend on Makefile should fix it, because configure creates Makefile, so error2.h will be recreated after reconfiguring. --- diff --git a/Makefile.real b/Makefile.real index ab64f3cc..d8020376 100644 --- a/Makefile.real +++ b/Makefile.real @@ -159,7 +159,7 @@ $(man_dir)/%.1: $(help2man_dir)/% | $(man_dir) $(hostbin_dir)/error2: error2.c | $(hostbin_dir) @[ -z "$(Q)" ] || echo 'HCC $<' $(Q) $(HOSTCC) -o $@ $< -error2.h: $(hostbin_dir)/error2 +error2.h: $(hostbin_dir)/error2 Makefile @[ -z "$(Q)" ] || echo 'ER2 $<' @echo "$(object_executable_matrix)" | $< > $@