]> git.draconx.ca Git - dxcommon.git/commit
Eliminate use of BUILT_SOURCES from Gnulib.
authorNick Bowler <nbowler@draconx.ca>
Mon, 19 Sep 2011 03:01:18 +0000 (23:01 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 21 Sep 2011 23:25:09 +0000 (19:25 -0400)
commit1315e91f1161399cafe4bfd1a9622b8056a45dd3
tree6aee59403316c35e8d499eddb84f526ee8f0e84d
parent27fd2e6316f403905a9a946a9a6b9ea9bab843ed
Eliminate use of BUILT_SOURCES from Gnulib.

As with recursive make, BUILT_SOURCES is harmful because of inadequate
dependency information.  We can achieve a similar effect with by using
order-only dependencies:  These force the headers to be up-to-date
before anything that might require them is built: but rebuilds are only
triggered based on the accurate dependency information generated by the
normal mechanisms.

Unfortunately, order-only dependencies are a GNU make feature, so we use
a hack which should fall back to ordinary dependencies on other make
implementations.  The worst effect of using ordinary dependencies will
be that files might be needlessly rebuilt when a header changes.
scripts/fix-gnulib.pl