]> granicus.if.org Git - postgresql/commit
Rearrange makefile rules for running Gen_fmgrtab.pl.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 May 2018 21:54:18 +0000 (17:54 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 May 2018 21:54:18 +0000 (17:54 -0400)
commit9bf28f96c7eb0c3630ef034679c426c2ee289aca
tree71a87ded31406cb2da2df9fd64e83dfa06ec5285
parentfa03769e4c4bf0911da71fba2501006b05ea195a
Rearrange makefile rules for running Gen_fmgrtab.pl.

Make these rules look more like the ones associated with genbki.pl,
to wit:

* Use a stamp file to record when we last ran the script, instead of
relying on the timestamps of the individual output files.

* Take the knowledge out of backend/Makefile and put it in utils/Makefile
where it belongs.  I moved down the handling of errcodes.h and probes.h
too, although those continue to be built by separate processes.

In itself, this is just much-needed cleanup with little practical effect.
However, by decoupling these makefile rules from the timestamps of the
generated header files, we open the door to not advancing those timestamps
unnecessarily, which will be taken advantage of by the next commit.

msvc/Solution.pm should be taught to do things similarly, but I'll leave
that for another commit.

Discussion: https://postgr.es/m/16925.1525376229@sss.pgh.pa.us
src/backend/Makefile
src/backend/catalog/Makefile
src/backend/utils/.gitignore
src/backend/utils/Makefile
src/include/Makefile
src/include/utils/.gitignore