]> git.pond.sub.org Git - empserver/commit
Fix remaking of config.h and config.h.in
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 27 Apr 2013 13:32:53 +0000 (15:32 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:57 +0000 (06:57 +0200)
commit02a18de4d4dcd4b9a0d07486608cc5d70dd36016
treeeb5716262cafebfcac5e166a8afa1e37bc537f7f
parent9760dc9d1200337e7b4d66ed946a4b9520a63531
Fix remaking of config.h and config.h.in

Remaking config.h and config.h.in updates the target only when its
contents actually changes.  This is important, because after updating
config.h we need to recompile everything.

The make rules to do that are straight from the Autoconf manual.  But
they don't work: the rules that connect config.h and config.h.in to
stamp-h and stamp-h.in don't have recipes.  Since make doesn't have an
implicit rule either, it concludes that the target remains unchanged.
It still updates the prerequisites.  The recipe for updating the stamp
files then change the the targetes behind make's back.  Make misses
the change of config.h and/or config.h.in, and we get an incomplete
rebuild.

The rules need empty recipes instead.  This Autoconf manual was fixed
accordingly in autoconf.git commit 6b42b38.
Make.mk