summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2005-09-27 17:13:14 +0000
committerTom Lane2005-09-27 17:13:14 +0000
commitd8093038cfad82a351725241b1c46b0da0d8b794 (patch)
treedd7fe9d636e4fbf194d123655d61f9c21e0ddf21
parent7007f6c01d119986a57044f0e4448fb90c60502e (diff)
PGXS should be set with := not =, as specified in the documentation,
to avoid useless multiple executions of pg_config.
-rw-r--r--contrib/btree_gist/Makefile2
-rw-r--r--contrib/chkpass/Makefile2
-rw-r--r--contrib/cube/Makefile2
-rw-r--r--contrib/dbase/Makefile2
-rw-r--r--contrib/dblink/Makefile2
-rw-r--r--contrib/dbmirror/Makefile2
-rw-r--r--contrib/earthdistance/Makefile2
-rw-r--r--contrib/fulltextindex/Makefile2
-rw-r--r--contrib/fuzzystrmatch/Makefile2
-rw-r--r--contrib/intagg/Makefile2
-rw-r--r--contrib/intarray/Makefile2
-rw-r--r--contrib/isbn_issn/Makefile2
-rw-r--r--contrib/lo/Makefile2
-rw-r--r--contrib/ltree/Makefile2
-rw-r--r--contrib/mSQL-interface/Makefile2
-rw-r--r--contrib/oid2name/Makefile2
-rw-r--r--contrib/pg_buffercache/Makefile2
-rw-r--r--contrib/pg_trgm/Makefile2
-rw-r--r--contrib/pgbench/Makefile2
-rw-r--r--contrib/pgcrypto/Makefile2
-rw-r--r--contrib/pgstattuple/Makefile2
-rw-r--r--contrib/seg/Makefile2
-rw-r--r--contrib/spi/Makefile2
-rw-r--r--contrib/tablefunc/Makefile2
-rw-r--r--contrib/tips/Makefile2
-rw-r--r--contrib/tsearch2/Makefile2
-rw-r--r--contrib/tsearch2/ispell/Makefile2
-rw-r--r--contrib/tsearch2/snowball/Makefile2
-rw-r--r--contrib/tsearch2/wordparser/Makefile2
-rw-r--r--contrib/userlock/Makefile2
-rw-r--r--contrib/vacuumlo/Makefile2
-rw-r--r--contrib/xml2/Makefile2
-rw-r--r--src/tutorial/Makefile2
33 files changed, 33 insertions, 33 deletions
diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile
index 11fa902bc6..6b018fdd5e 100644
--- a/contrib/btree_gist/Makefile
+++ b/contrib/btree_gist/Makefile
@@ -13,7 +13,7 @@ REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz t
date interval macaddr inet cidr text varchar char bytea bit varbit numeric
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/btree_gist
diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile
index da7b0d2964..ba66acb650 100644
--- a/contrib/chkpass/Makefile
+++ b/contrib/chkpass/Makefile
@@ -7,7 +7,7 @@ DATA_built = chkpass.sql
DOCS = README.chkpass
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/chkpass
diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile
index 2b2fa3c86c..9caddaee9f 100644
--- a/contrib/cube/Makefile
+++ b/contrib/cube/Makefile
@@ -12,7 +12,7 @@ EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/cube
diff --git a/contrib/dbase/Makefile b/contrib/dbase/Makefile
index 3b1c9ac022..dd02d875ce 100644
--- a/contrib/dbase/Makefile
+++ b/contrib/dbase/Makefile
@@ -16,7 +16,7 @@ MAN = dbf2pg.1 # XXX not implemented
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/dbase
diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile
index f60cf86b50..97f306fab9 100644
--- a/contrib/dblink/Makefile
+++ b/contrib/dblink/Makefile
@@ -11,7 +11,7 @@ REGRESS = dblink
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/dblink
diff --git a/contrib/dbmirror/Makefile b/contrib/dbmirror/Makefile
index 952da5601f..f3abf30652 100644
--- a/contrib/dbmirror/Makefile
+++ b/contrib/dbmirror/Makefile
@@ -6,7 +6,7 @@ DATA = AddTrigger.sql MirrorSetup.sql slaveDatabase.conf
DOCS = README.dbmirror
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/dbmirror
diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile
index d60c052294..3fc7ef56ed 100644
--- a/contrib/earthdistance/Makefile
+++ b/contrib/earthdistance/Makefile
@@ -8,7 +8,7 @@ REGRESS = earthdistance
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/earthdistance
diff --git a/contrib/fulltextindex/Makefile b/contrib/fulltextindex/Makefile
index 7f5ac7d66b..53bc66e342 100644
--- a/contrib/fulltextindex/Makefile
+++ b/contrib/fulltextindex/Makefile
@@ -6,7 +6,7 @@ DOCS = README.fti
SCRIPTS = fti.pl
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/fulltextindex
diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile
index 4f2e249614..3e84aab635 100644
--- a/contrib/fuzzystrmatch/Makefile
+++ b/contrib/fuzzystrmatch/Makefile
@@ -7,7 +7,7 @@ DATA_built = fuzzystrmatch.sql
DOCS = README.fuzzystrmatch README.soundex
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/fuzzystrmatch
diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile
index fef3f8cf50..68120feedd 100644
--- a/contrib/intagg/Makefile
+++ b/contrib/intagg/Makefile
@@ -9,7 +9,7 @@ DATA_built = int_aggregate.sql
DOCS = README.int_aggregate
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/intagg
diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile
index 55b33fdb18..28500392e3 100644
--- a/contrib/intarray/Makefile
+++ b/contrib/intarray/Makefile
@@ -7,7 +7,7 @@ DOCS = README.intarray
REGRESS = _int
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/intarray
diff --git a/contrib/isbn_issn/Makefile b/contrib/isbn_issn/Makefile
index 940994d482..89e530adb8 100644
--- a/contrib/isbn_issn/Makefile
+++ b/contrib/isbn_issn/Makefile
@@ -5,7 +5,7 @@ DATA_built = isbn_issn.sql
DOCS = README.isbn_issn
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/isbn_issn
diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile
index 41ecfa8447..18184bf023 100644
--- a/contrib/lo/Makefile
+++ b/contrib/lo/Makefile
@@ -6,7 +6,7 @@ DATA = lo_drop.sql lo_test.sql
DOCS = README.lo
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/lo
diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile
index bc64e009b6..982c55d7a2 100644
--- a/contrib/ltree/Makefile
+++ b/contrib/ltree/Makefile
@@ -7,7 +7,7 @@ DOCS = README.ltree
REGRESS = ltree
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/ltree
diff --git a/contrib/mSQL-interface/Makefile b/contrib/mSQL-interface/Makefile
index d94345733b..2e61107ba0 100644
--- a/contrib/mSQL-interface/Makefile
+++ b/contrib/mSQL-interface/Makefile
@@ -10,7 +10,7 @@ OBJS = mpgsql.o
PG_CPPFLAGS = -I$(libpq_srcdir)
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/mSQL-interface
diff --git a/contrib/oid2name/Makefile b/contrib/oid2name/Makefile
index 152cf1ccd3..1b6665ff8b 100644
--- a/contrib/oid2name/Makefile
+++ b/contrib/oid2name/Makefile
@@ -9,7 +9,7 @@ PG_LIBS = $(libpq_pgport)
DOCS = README.oid2name
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/oid2name
diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile
index fda9e10cd7..fef7f8135e 100644
--- a/contrib/pg_buffercache/Makefile
+++ b/contrib/pg_buffercache/Makefile
@@ -7,7 +7,7 @@ DATA_built = pg_buffercache.sql
DOCS = README.pg_buffercache
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pg_buffercache
diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile
index 0ef3c3ed17..993089151a 100644
--- a/contrib/pg_trgm/Makefile
+++ b/contrib/pg_trgm/Makefile
@@ -10,7 +10,7 @@ REGRESS = pg_trgm
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pg_trgm
diff --git a/contrib/pgbench/Makefile b/contrib/pgbench/Makefile
index 1e0f639349..827a3c07c5 100644
--- a/contrib/pgbench/Makefile
+++ b/contrib/pgbench/Makefile
@@ -9,7 +9,7 @@ PG_LIBS = $(libpq_pgport)
DOCS = README.pgbench README.pgbench_jis
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pgbench
diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile
index fd7a694c68..94bd9bb93f 100644
--- a/contrib/pgcrypto/Makefile
+++ b/contrib/pgcrypto/Makefile
@@ -44,7 +44,7 @@ REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pgcrypto
diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile
index 3820ba15fa..9edf6180d1 100644
--- a/contrib/pgstattuple/Makefile
+++ b/contrib/pgstattuple/Makefile
@@ -14,7 +14,7 @@ DOCS = README.pgstattuple README.pgstattuple.euc_jp
DATA_built = pgstattuple.sql
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pgstattuple
diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile
index c96201b9b4..3d69ac04b3 100644
--- a/contrib/seg/Makefile
+++ b/contrib/seg/Makefile
@@ -9,7 +9,7 @@ REGRESS = seg
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/seg
diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile
index 1d9813c103..e9d78c4975 100644
--- a/contrib/spi/Makefile
+++ b/contrib/spi/Makefile
@@ -9,7 +9,7 @@ DOCS = README.spi $(addsuffix .example, $(MODULES))
PG_CPPFLAGS = -DREFINT_VERBOSE
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/spi
diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile
index b2b8cb2e00..be18f9163e 100644
--- a/contrib/tablefunc/Makefile
+++ b/contrib/tablefunc/Makefile
@@ -6,7 +6,7 @@ REGRESS = tablefunc
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tablefunc
diff --git a/contrib/tips/Makefile b/contrib/tips/Makefile
index 8d81611086..d7cd9528a4 100644
--- a/contrib/tips/Makefile
+++ b/contrib/tips/Makefile
@@ -3,7 +3,7 @@
DOCS = README.apachelog
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tips
diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile
index fadd34c91d..ec48b1bbbe 100644
--- a/contrib/tsearch2/Makefile
+++ b/contrib/tsearch2/Makefile
@@ -23,7 +23,7 @@ SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tsearch2
diff --git a/contrib/tsearch2/ispell/Makefile b/contrib/tsearch2/ispell/Makefile
index 8964f7ac9b..5b23fa3396 100644
--- a/contrib/tsearch2/ispell/Makefile
+++ b/contrib/tsearch2/ispell/Makefile
@@ -5,7 +5,7 @@ SUBOBJS = spell.o regis.o
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tsearch2
diff --git a/contrib/tsearch2/snowball/Makefile b/contrib/tsearch2/snowball/Makefile
index 91c01ea5e2..ab9a6db972 100644
--- a/contrib/tsearch2/snowball/Makefile
+++ b/contrib/tsearch2/snowball/Makefile
@@ -6,7 +6,7 @@ SUBOBJS = english_stem.o api.o russian_stem.o utilities.o
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tsearch2
diff --git a/contrib/tsearch2/wordparser/Makefile b/contrib/tsearch2/wordparser/Makefile
index b5dcb674af..15d8b177bc 100644
--- a/contrib/tsearch2/wordparser/Makefile
+++ b/contrib/tsearch2/wordparser/Makefile
@@ -6,7 +6,7 @@ SUBOBJS = parser.o deflex.o
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS) parser.c
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/tsearch2
diff --git a/contrib/userlock/Makefile b/contrib/userlock/Makefile
index db90d0ea20..f68532b679 100644
--- a/contrib/userlock/Makefile
+++ b/contrib/userlock/Makefile
@@ -5,7 +5,7 @@ DATA_built = user_locks.sql
DOCS = README.user_locks
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/userlock
diff --git a/contrib/vacuumlo/Makefile b/contrib/vacuumlo/Makefile
index 1b5229d407..cafb59b6bd 100644
--- a/contrib/vacuumlo/Makefile
+++ b/contrib/vacuumlo/Makefile
@@ -9,7 +9,7 @@ PG_LIBS = $(libpq_pgport)
DOCS = README.vacuumlo
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/vacuumlo
diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile
index 7d4779f25c..b30da28364 100644
--- a/contrib/xml2/Makefile
+++ b/contrib/xml2/Makefile
@@ -14,7 +14,7 @@ DOCS = README.xml2
override CFLAGS += $(shell xml2-config --cflags)
ifdef USE_PGXS
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/xml2
diff --git a/src/tutorial/Makefile b/src/tutorial/Makefile
index e37161f362..441f196ec3 100644
--- a/src/tutorial/Makefile
+++ b/src/tutorial/Makefile
@@ -24,7 +24,7 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/src/makefiles/pgxs.mk
else
-PGXS = $(shell pg_config --pgxs)
+PGXS := $(shell pg_config --pgxs)
include $(PGXS)
endif