psql: Output dir and dependency generation for sql_help
authorAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 18:57:31 +0000 (11:57 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 19:24:12 +0000 (12:24 -0700)
commit7c3c2cb9aeda4f288e89b25ede8cc2fe5997ac98
tree1db74980fabc60e949b04065112dec592c2ea09a
parenta91242b1bcb312d6f482a758a432a32bd375896e
psql: Output dir and dependency generation for sql_help

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.

To deal with dependencies to the variable set of input files to this script,
add an option to generate a dependency file (which meson / ninja can consume).

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com
src/bin/psql/Makefile
src/bin/psql/create_help.pl
src/tools/msvc/Solution.pm