]> granicus.if.org Git - postgresql/commit
Fix pg_config.h make rule
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 7 May 2012 18:28:38 +0000 (21:28 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 7 May 2012 18:28:38 +0000 (21:28 +0300)
commitd7b2cd9d40e858778ca93b59383d280e510a01e7
tree18510f1214da9f9a3f40241de4da73bca511c6b9
parent916d589a10185bb30fc77923029d806f5907ab1e
Fix pg_config.h make rule

According to the Autoconf documentation, there should be a make rule

pg_config.h: stamp-h

so that with the right setup around this, a change in pg_config.h.in
will trigger a rebuild of everything that depends on pg_config.h.  But
this doesn't always work, sometimes you need to run make twice to get
everything up to date after a change of pg_config.h.in.

The fix is to write the rule as

pg_config.h: stamp-h ;

instead (with an empty command instead of no command).  This is what
Automake-generated makefiles effectively do, so it seems safe to be on
this side.

It's not actually clear why this is (apparently) more correct.  It's
been posted to
<http://lists.gnu.org/archive/html/help-make/2012-04/msg00058.html>
without response so far.
src/Makefile.global.in