Use wildcards instead of manually-maintained file lists in */nls.mk.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jul 2022 16:56:42 +0000 (12:56 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jul 2022 16:56:42 +0000 (12:56 -0400)
commit617d69141220f277170927e03a19d2f1b77aed77
tree37c8cf1fe68bcbd469b86a1c7595dcf96cc5bf4c
parentff33a8c8874b43ec55d517ce0612ed79ad08a38a
Use wildcards instead of manually-maintained file lists in */nls.mk.

The backend already used a mechanically-generated list of *.c files,
but everywhere else we had a manually-written-out list of files in
which to seek translatable messages.  Commit b0a55e432 contains the
latest in a long line of failures to update those lists.  Rather than
manually fix its oversight, let's change to using "$(wildcard *.c)"
in all these nls.mk files.

Many of these files also have manual references to some *.c files
in other directories, most often src/common/.  Perhaps we should try
to improve that situation too; but it's a bit less clear how, so for
now just fix the local file references.

Kyotaro Horiguchi and Tom Lane

Discussion: https://postgr.es/m/20220713.160853.453362706160476128.horikyota.ntt@gmail.com
25 files changed:
src/bin/initdb/nls.mk
src/bin/pg_amcheck/nls.mk
src/bin/pg_archivecleanup/nls.mk
src/bin/pg_basebackup/nls.mk
src/bin/pg_checksums/nls.mk
src/bin/pg_config/nls.mk
src/bin/pg_controldata/nls.mk
src/bin/pg_ctl/nls.mk
src/bin/pg_dump/nls.mk
src/bin/pg_resetwal/nls.mk
src/bin/pg_rewind/nls.mk
src/bin/pg_test_fsync/nls.mk
src/bin/pg_test_timing/nls.mk
src/bin/pg_upgrade/nls.mk
src/bin/pg_verifybackup/nls.mk
src/bin/pg_waldump/nls.mk
src/bin/psql/nls.mk
src/bin/scripts/nls.mk
src/interfaces/ecpg/ecpglib/nls.mk
src/interfaces/ecpg/preproc/nls.mk
src/interfaces/libpq/nls.mk
src/pl/plperl/nls.mk
src/pl/plpgsql/src/nls.mk
src/pl/plpython/nls.mk
src/pl/tcl/nls.mk