Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0b36cb8

Browse files
committed
PGXS should be set with := not =, as specified in the documentation,
to avoid useless multiple executions of pg_config.
1 parent 8ddd22f commit 0b36cb8

File tree

33 files changed

+61
-61
lines changed

33 files changed

+61
-61
lines changed

contrib/btree_gist/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz t
1313
date interval macaddr inet cidr text varchar char bytea bit varbit numeric
1414

1515
ifdef USE_PGXS
16-
PGXS = $(shell pg_config --pgxs)
16+
PGXS := $(shell pg_config --pgxs)
1717
include $(PGXS)
1818
else
1919
subdir = contrib/btree_gist

contrib/chkpass/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.6 2004/08/20 20:13:02 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.7 2005/09/27 17:13:00 tgl Exp $
22

33
MODULE_big = chkpass
44
OBJS = chkpass.o
@@ -7,7 +7,7 @@ DATA_built = chkpass.sql
77
DOCS = README.chkpass
88

99
ifdef USE_PGXS
10-
PGXS = $(shell pg_config --pgxs)
10+
PGXS := $(shell pg_config --pgxs)
1111
include $(PGXS)
1212
else
1313
subdir = contrib/chkpass

contrib/cube/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.13 2005/07/24 23:30:09 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.14 2005/09/27 17:13:00 tgl Exp $
22

33
MODULE_big = cube
44
OBJS= cube.o cubeparse.o
@@ -12,7 +12,7 @@ EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
1212
SHLIB_LINK += $(filter -lm, $(LIBS))
1313

1414
ifdef USE_PGXS
15-
PGXS = $(shell pg_config --pgxs)
15+
PGXS := $(shell pg_config --pgxs)
1616
include $(PGXS)
1717
else
1818
subdir = contrib/cube

contrib/dbase/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.7 2005/03/25 18:17:10 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.8 2005/09/27 17:13:01 tgl Exp $
22

33
PROGRAM = dbf2pg
44
OBJS = dbf.o dbf2pg.o endian.o
@@ -16,7 +16,7 @@ MAN = dbf2pg.1 # XXX not implemented
1616

1717

1818
ifdef USE_PGXS
19-
PGXS = $(shell pg_config --pgxs)
19+
PGXS := $(shell pg_config --pgxs)
2020
include $(PGXS)
2121
else
2222
subdir = contrib/dbase

contrib/dblink/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.9 2004/08/20 20:13:03 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.10 2005/09/27 17:13:01 tgl Exp $
22

33
MODULE_big = dblink
44
PG_CPPFLAGS = -I$(libpq_srcdir)
@@ -11,7 +11,7 @@ REGRESS = dblink
1111

1212

1313
ifdef USE_PGXS
14-
PGXS = $(shell pg_config --pgxs)
14+
PGXS := $(shell pg_config --pgxs)
1515
include $(PGXS)
1616
else
1717
subdir = contrib/dblink

contrib/dbmirror/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.4 2004/11/04 06:09:19 neilc Exp $
1+
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.5 2005/09/27 17:13:01 tgl Exp $
22

33
MODULES = pending
44
SCRIPTS = clean_pending.pl DBMirror.pl
55
DATA = AddTrigger.sql MirrorSetup.sql slaveDatabase.conf
66
DOCS = README.dbmirror
77

88
ifdef USE_PGXS
9-
PGXS = $(shell pg_config --pgxs)
9+
PGXS := $(shell pg_config --pgxs)
1010
include $(PGXS)
1111
else
1212
subdir = contrib/dbmirror

contrib/earthdistance/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.15 2005/07/24 23:30:09 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.16 2005/09/27 17:13:02 tgl Exp $
22

33
MODULES = earthdistance
44
DATA_built = earthdistance.sql
@@ -8,7 +8,7 @@ REGRESS = earthdistance
88
SHLIB_LINK += $(filter -lm, $(LIBS))
99

1010
ifdef USE_PGXS
11-
PGXS = $(shell pg_config --pgxs)
11+
PGXS := $(shell pg_config --pgxs)
1212
include $(PGXS)
1313
else
1414
subdir = contrib/earthdistance

contrib/fulltextindex/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.14 2005/09/27 17:13:02 tgl Exp $
22

33
MODULES = fti
44
DATA_built = fti.sql
55
DOCS = README.fti
66
SCRIPTS = fti.pl
77

88
ifdef USE_PGXS
9-
PGXS = $(shell pg_config --pgxs)
9+
PGXS := $(shell pg_config --pgxs)
1010
include $(PGXS)
1111
else
1212
subdir = contrib/fulltextindex

contrib/fuzzystrmatch/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.6 2005/09/27 17:13:03 tgl Exp $
22

33
MODULE_big = fuzzystrmatch
44
SRCS += fuzzystrmatch.c dmetaphone.c
@@ -7,7 +7,7 @@ DATA_built = fuzzystrmatch.sql
77
DOCS = README.fuzzystrmatch README.soundex
88

99
ifdef USE_PGXS
10-
PGXS = $(shell pg_config --pgxs)
10+
PGXS := $(shell pg_config --pgxs)
1111
include $(PGXS)
1212
else
1313
subdir = contrib/fuzzystrmatch

contrib/intagg/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# Makefile for integer aggregator
33
# Copyright (C) 2001 Digital Music Network.
44
# by Mark L. Woodward
5-
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
5+
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.6 2005/09/27 17:13:03 tgl Exp $
66

77
MODULES = int_aggregate
88
DATA_built = int_aggregate.sql
99
DOCS = README.int_aggregate
1010

1111
ifdef USE_PGXS
12-
PGXS = $(shell pg_config --pgxs)
12+
PGXS := $(shell pg_config --pgxs)
1313
include $(PGXS)
1414
else
1515
subdir = contrib/intagg

contrib/intarray/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.11 2004/08/20 20:13:04 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.12 2005/09/27 17:13:04 tgl Exp $
22

33
MODULE_big = _int
44
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
@@ -7,7 +7,7 @@ DOCS = README.intarray
77
REGRESS = _int
88

99
ifdef USE_PGXS
10-
PGXS = $(shell pg_config --pgxs)
10+
PGXS := $(shell pg_config --pgxs)
1111
include $(PGXS)
1212
else
1313
subdir = contrib/intarray

contrib/isbn_issn/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.14 2005/09/27 17:13:04 tgl Exp $
22

33
MODULES = isbn_issn
44
DATA_built = isbn_issn.sql
55
DOCS = README.isbn_issn
66

77
ifdef USE_PGXS
8-
PGXS = $(shell pg_config --pgxs)
8+
PGXS := $(shell pg_config --pgxs)
99
include $(PGXS)
1010
else
1111
subdir = contrib/isbn_issn

contrib/lo/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.13 2004/08/20 20:13:05 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.14 2005/09/27 17:13:04 tgl Exp $
22

33
MODULES = lo
44
DATA_built = lo.sql
55
DATA = lo_drop.sql lo_test.sql
66
DOCS = README.lo
77

88
ifdef USE_PGXS
9-
PGXS = $(shell pg_config --pgxs)
9+
PGXS := $(shell pg_config --pgxs)
1010
include $(PGXS)
1111
else
1212
subdir = contrib/lo

contrib/ltree/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DOCS = README.ltree
77
REGRESS = ltree
88

99
ifdef USE_PGXS
10-
PGXS = $(shell pg_config --pgxs)
10+
PGXS := $(shell pg_config --pgxs)
1111
include $(PGXS)
1212
else
1313
subdir = contrib/ltree

contrib/mSQL-interface/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# $PostgreSQL: pgsql/contrib/mSQL-interface/Makefile,v 1.9 2004/08/20 20:13:05 momjian Exp $
2+
# $PostgreSQL: pgsql/contrib/mSQL-interface/Makefile,v 1.10 2005/09/27 17:13:05 tgl Exp $
33
#
44

55
NAME = mpgsql
@@ -10,7 +10,7 @@ OBJS = mpgsql.o
1010
PG_CPPFLAGS = -I$(libpq_srcdir)
1111

1212
ifdef USE_PGXS
13-
PGXS = $(shell pg_config --pgxs)
13+
PGXS := $(shell pg_config --pgxs)
1414
include $(PGXS)
1515
else
1616
subdir = contrib/mSQL-interface

contrib/oid2name/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/oid2name/Makefile,v 1.7 2005/03/25 18:17:11 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/oid2name/Makefile,v 1.8 2005/09/27 17:13:06 tgl Exp $
22

33
PROGRAM = oid2name
44
OBJS = oid2name.o
@@ -9,7 +9,7 @@ PG_LIBS = $(libpq_pgport)
99
DOCS = README.oid2name
1010

1111
ifdef USE_PGXS
12-
PGXS = $(shell pg_config --pgxs)
12+
PGXS := $(shell pg_config --pgxs)
1313
include $(PGXS)
1414
else
1515
subdir = contrib/oid2name

contrib/pg_buffercache/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/pg_buffercache/Makefile,v 1.1 2005/03/12 15:36:24 neilc Exp $
1+
# $PostgreSQL: pgsql/contrib/pg_buffercache/Makefile,v 1.2 2005/09/27 17:13:07 tgl Exp $
22

33
MODULE_big = pg_buffercache
44
OBJS = pg_buffercache_pages.o
@@ -7,7 +7,7 @@ DATA_built = pg_buffercache.sql
77
DOCS = README.pg_buffercache
88

99
ifdef USE_PGXS
10-
PGXS = $(shell pg_config --pgxs)
10+
PGXS := $(shell pg_config --pgxs)
1111
include $(PGXS)
1212
else
1313
subdir = contrib/pg_buffercache

contrib/pg_trgm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ REGRESS = pg_trgm
1010

1111

1212
ifdef USE_PGXS
13-
PGXS = $(shell pg_config --pgxs)
13+
PGXS := $(shell pg_config --pgxs)
1414
include $(PGXS)
1515
else
1616
subdir = contrib/pg_trgm

contrib/pgbench/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.13 2005/03/25 18:17:11 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.14 2005/09/27 17:13:08 tgl Exp $
22

33
PROGRAM = pgbench
44
OBJS = pgbench.o
@@ -9,7 +9,7 @@ PG_LIBS = $(libpq_pgport)
99
DOCS = README.pgbench README.pgbench_jis
1010

1111
ifdef USE_PGXS
12-
PGXS = $(shell pg_config --pgxs)
12+
PGXS := $(shell pg_config --pgxs)
1313
include $(PGXS)
1414
else
1515
subdir = contrib/pgbench

contrib/pgcrypto/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.22 2005/08/13 02:06:20 momjian Exp $
2+
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.23 2005/09/27 17:13:08 tgl Exp $
33
#
44

55
INT_SRCS = md5.c sha1.c sha2.c internal.c blf.c rijndael.c \
@@ -44,7 +44,7 @@ REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
4444

4545

4646
ifdef USE_PGXS
47-
PGXS = $(shell pg_config --pgxs)
47+
PGXS := $(shell pg_config --pgxs)
4848
include $(PGXS)
4949
else
5050
subdir = contrib/pgcrypto

contrib/pgstattuple/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# pgstattuple Makefile
44
#
5-
# $PostgreSQL: pgsql/contrib/pgstattuple/Makefile,v 1.3 2004/08/20 20:13:07 momjian Exp $
5+
# $PostgreSQL: pgsql/contrib/pgstattuple/Makefile,v 1.4 2005/09/27 17:13:09 tgl Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -14,7 +14,7 @@ DOCS = README.pgstattuple README.pgstattuple.euc_jp
1414
DATA_built = pgstattuple.sql
1515

1616
ifdef USE_PGXS
17-
PGXS = $(shell pg_config --pgxs)
17+
PGXS := $(shell pg_config --pgxs)
1818
include $(PGXS)
1919
else
2020
subdir = contrib/pgstattuple

contrib/seg/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.12 2004/08/20 20:13:07 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.13 2005/09/27 17:13:09 tgl Exp $
22

33
MODULE_big = seg
44
OBJS = seg.o segparse.o
@@ -9,7 +9,7 @@ REGRESS = seg
99
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
1010

1111
ifdef USE_PGXS
12-
PGXS = $(shell pg_config --pgxs)
12+
PGXS := $(shell pg_config --pgxs)
1313
include $(PGXS)
1414
else
1515
subdir = contrib/seg

contrib/spi/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.25 2004/11/17 17:45:59 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.26 2005/09/27 17:13:10 tgl Exp $
22

33
MODULES = autoinc insert_username moddatetime refint timetravel
44
DATA_built = $(addsuffix .sql, $(MODULES))
@@ -9,7 +9,7 @@ DOCS = README.spi $(addsuffix .example, $(MODULES))
99
PG_CPPFLAGS = -DREFINT_VERBOSE
1010

1111
ifdef USE_PGXS
12-
PGXS = $(shell pg_config --pgxs)
12+
PGXS := $(shell pg_config --pgxs)
1313
include $(PGXS)
1414
else
1515
subdir = contrib/spi

contrib/tablefunc/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ REGRESS = tablefunc
66
SHLIB_LINK += $(filter -lm, $(LIBS))
77

88
ifdef USE_PGXS
9-
PGXS = $(shell pg_config --pgxs)
9+
PGXS := $(shell pg_config --pgxs)
1010
include $(PGXS)
1111
else
1212
subdir = contrib/tablefunc

contrib/tips/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# $PostgreSQL: pgsql/contrib/tips/Makefile,v 1.7 2004/08/20 20:13:08 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/tips/Makefile,v 1.8 2005/09/27 17:13:10 tgl Exp $
22

33
DOCS = README.apachelog
44

55
ifdef USE_PGXS
6-
PGXS = $(shell pg_config --pgxs)
6+
PGXS := $(shell pg_config --pgxs)
77
include $(PGXS)
88
else
99
subdir = contrib/tips

contrib/tsearch2/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.9 2005/07/24 23:30:10 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.10 2005/09/27 17:13:11 tgl Exp $
22

33
MODULE_big = tsearch2
44
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
@@ -23,7 +23,7 @@ SHLIB_LINK += $(filter -lm, $(LIBS))
2323

2424

2525
ifdef USE_PGXS
26-
PGXS = $(shell pg_config --pgxs)
26+
PGXS := $(shell pg_config --pgxs)
2727
include $(PGXS)
2828
else
2929
subdir = contrib/tsearch2

contrib/tsearch2/ispell/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# $PostgreSQL: pgsql/contrib/tsearch2/ispell/Makefile,v 1.7 2005/09/15 11:14:18 teodor Exp $
1+
# $PostgreSQL: pgsql/contrib/tsearch2/ispell/Makefile,v 1.8 2005/09/27 17:13:11 tgl Exp $
22

33
PG_CPPFLAGS = -I$(srcdir)/..
44
SUBOBJS = spell.o regis.o
55
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
66

77
ifdef USE_PGXS
8-
PGXS = $(shell pg_config --pgxs)
8+
PGXS := $(shell pg_config --pgxs)
99
include $(PGXS)
1010
else
1111
subdir = contrib/tsearch2

contrib/tsearch2/snowball/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $PostgreSQL: pgsql/contrib/tsearch2/snowball/Makefile,v 1.6 2005/09/15 11:14:18 teodor Exp $
1+
# $PostgreSQL: pgsql/contrib/tsearch2/snowball/Makefile,v 1.7 2005/09/27 17:13:12 tgl Exp $
22

33

44
PG_CPPFLAGS = -I$(srcdir)/..
55
SUBOBJS = english_stem.o api.o russian_stem.o utilities.o
66
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
77

88
ifdef USE_PGXS
9-
PGXS = $(shell pg_config --pgxs)
9+
PGXS := $(shell pg_config --pgxs)
1010
include $(PGXS)
1111
else
1212
subdir = contrib/tsearch2

0 commit comments

Comments
 (0)