1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

meson: Add dependencies to perl modules to various script invocations

Eventually it is likely worth trying to deal with this in a more expansive
way, by generating dependency files generated within the scripts. But it's not
entirely obvious how to do that in perl and is work more suitable for 17
anyway.

Reported-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Reviewed-by: Tristan Partin <tristan@neon.tech>
Discussion: https://postgr.es/m/87v8g7s6bf.fsf@wibble.ilmari.org
This commit is contained in:
Andres Freund
2023-06-09 20:12:16 -07:00
parent b9e3f8005c
commit a1cd982098
8 changed files with 30 additions and 21 deletions

View File

@ -2681,6 +2681,20 @@ gen_export_kwargs = {
###
### Helpers for custom targets used across the tree
###
catalog_pm = files('src/backend/catalog/Catalog.pm')
perfect_hash_pm = files('src/tools/PerfectHash.pm')
gen_kwlist_deps = [perfect_hash_pm]
gen_kwlist_cmd = [
perl, '-I', '@SOURCE_ROOT@/src/tools',
files('src/tools/gen_keywordlist.pl'),
'--output', '@OUTDIR@', '@INPUT@']
###
### windows resources related stuff
###