pgsql: Fix program build rule in src/bin/scripts/Makefile. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix program build rule in src/bin/scripts/Makefile.
Date
Msg-id E1gfZZk-0007tI-0R@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix program build rule in src/bin/scripts/Makefile.

Commit 69ae9dcb4 added a globally-visible "%: %.o" rule, but we failed
to notice that src/bin/scripts/Makefile already had such a rule.
Apparently, the later occurrence of the same rule wins in nearly all
versions of gmake ... but not in the one used by buildfarm member jacana.
jacana is evidently using the global rule, which says to link "$<",
ie just the first dependency.  But the scripts makefile needs to
link "$^", ie all the dependencies listed for the target.

There is, fortunately, no good reason not to use "$^" in the global
version of the rule, so we can just do that and get rid of the local
version.

Branch
------
master

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

Modified Files
--------------
src/Makefile.global.in   |  2 +-
src/bin/scripts/Makefile | 19 ++++++++-----------
2 files changed, 9 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Don't create relfilenode for relations without storage
Next
From: Michael Paquier
Date:
Subject: pgsql: doc: Update RFC URLs