ecpg: Output dir, source dir, stamp file argument for preproc/*.pl

This is in preparation for building postgres with meson / ninja.

When building with meson, commands are run at the root of the build tree. Add
an option to put build output into the appropriate place. This can be utilized
by src/tools/msvc/ for a minor simplification, which also provides some
coverage for the new option.

Add option to generate a timestamp for check_rules.pl, so that proper
dependencies on it having been run can be generated.

Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: 
https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/db0a272d123b8d7f4d4acbeb54f27682a566be83

Modified Files
--------------
src/interfaces/ecpg/preproc/Makefile       |  4 ++--
src/interfaces/ecpg/preproc/check_rules.pl | 24 ++++++++++++++++-------
src/interfaces/ecpg/preproc/parse.pl       | 31 +++++++++++++++++++++---------
src/tools/msvc/Solution.pm                 |  5 ++---
4 files changed, 43 insertions(+), 21 deletions(-)

Reply via email to