From abb0804473161fbce0f98c627138c146fe1b6a95 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 20 Dec 2013 11:29:58 +0100 Subject: [PATCH] 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. --- Makefile.real | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" | $< > $@ -- 2.39.2