[PATCH] Remove useless USE_PGXS support in contrib

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [PATCH] Remove useless USE_PGXS support in contrib
Дата
Msg-id 1371093408.309.5.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: [PATCH] Remove useless USE_PGXS support in contrib  ("David E. Wheeler" <david@justatheory.com>)
Re: [PATCH] Remove useless USE_PGXS support in contrib  (amul sul <sul_amul@yahoo.co.in>)
Re: [PATCH] Remove useless USE_PGXS support in contrib  (Craig Ringer <craig@2ndquadrant.com>)
Re: [PATCH] Remove useless USE_PGXS support in contrib  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
[Review] Re: [PATCH] Remove useless USE_PGXS support in contrib  (Cédric Villemain <cedric@2ndquadrant.com>)
Список pgsql-hackers
This has served no purpose except to

1. take up space
2. confuse users
3. produce broken external extension modules that take contrib as an example
4. break builds of PostgreSQL when users try to fix 3. by exporting USE_PGXS

There is adequate material in the documentation and elsewhere (PGXN) on
how to write extensions and their makefiles, so this is not needed.
---
pursuant to discussion here:
http://www.postgresql.org/message-id/512CEAB8.9010400@gmx.net
contrib/adminpack/Makefile          |    6 ------contrib/auth_delay/Makefile         |    6
------contrib/auto_explain/Makefile      |    6 ------contrib/btree_gin/Makefile          |    6
------contrib/btree_gist/Makefile        |    6 ------contrib/chkpass/Makefile            |    6
------contrib/citext/Makefile            |    6 ------contrib/cube/Makefile               |    6
------contrib/dblink/Makefile            |    6 ------contrib/dict_int/Makefile           |    6
------contrib/dict_xsyn/Makefile         |    6 ------contrib/dummy_seclabel/Makefile     |    6
------contrib/earthdistance/Makefile     |    6 ------contrib/file_fdw/Makefile           |    6
------contrib/fuzzystrmatch/Makefile     |    6 ------contrib/hstore/Makefile             |    6
------contrib/intagg/Makefile            |    6 ------contrib/intarray/Makefile           |    6
------contrib/isn/Makefile               |    6 ------contrib/lo/Makefile                 |    6
------contrib/ltree/Makefile             |    6 ------contrib/oid2name/Makefile           |    6
------contrib/pageinspect/Makefile       |    6 ------contrib/passwordcheck/Makefile      |    6
------contrib/pg_archivecleanup/Makefile |    6 ------contrib/pg_buffercache/Makefile     |    6
------contrib/pg_freespacemap/Makefile   |    6 ------contrib/pg_standby/Makefile         |    6
------contrib/pg_stat_statements/Makefile|    6 ------contrib/pg_test_fsync/Makefile      |    6
------contrib/pg_test_timing/Makefile    |    6 ------contrib/pg_trgm/Makefile            |    6
------contrib/pg_upgrade/Makefile        |    6 ------contrib/pg_upgrade_support/Makefile |    8
+-------contrib/pg_xlogdump/Makefile       |    6 ------contrib/pgbench/Makefile            |    6
------contrib/pgcrypto/Makefile          |    6 ------contrib/pgrowlocks/Makefile         |    6
------contrib/pgstattuple/Makefile       |    6 ------contrib/postgres_fdw/Makefile       |    6
------contrib/seg/Makefile               |    6 ------contrib/sepgsql/Makefile            |    6
------contrib/spi/Makefile               |    6 ------contrib/sslinfo/Makefile            |    6
------contrib/tablefunc/Makefile         |    6 ------contrib/tcn/Makefile                |    6
------contrib/test_parser/Makefile       |    6 ------contrib/tsearch2/Makefile           |    6
------contrib/unaccent/Makefile          |    6 ------contrib/uuid-ossp/Makefile          |    6
------contrib/vacuumlo/Makefile          |    6 ------contrib/worker_spi/Makefile         |    6
------contrib/xml2/Makefile              |    6 ------53 files changed, 1 insertion(+), 319 deletions(-)
 

diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile
index 5cbc8f0..074d443 100644
--- a/contrib/adminpack/Makefile
+++ b/contrib/adminpack/Makefile
@@ -7,13 +7,7 @@ PG_CPPFLAGS = -I$(libpq_srcdir)EXTENSION = adminpackDATA = adminpack--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/adminpacktop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile
index 09d2d54..d1c7918 100644
--- a/contrib/auth_delay/Makefile
+++ b/contrib/auth_delay/Makefile
@@ -2,13 +2,7 @@MODULES = auth_delay
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/auth_delaytop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile
index 2d1443f..d343572 100644
--- a/contrib/auto_explain/Makefile
+++ b/contrib/auto_explain/Makefile
@@ -3,13 +3,7 @@MODULE_big = auto_explainOBJS = auto_explain.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/auto_explaintop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile
index 09fd3e6..284b745 100644
--- a/contrib/btree_gin/Makefile
+++ b/contrib/btree_gin/Makefile
@@ -11,13 +11,7 @@ REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \    macaddr inet cidr text
varcharchar bytea bit varbit \    numeric
 
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/btree_gintop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile
index ba4af14..0d1dee3 100644
--- a/contrib/btree_gist/Makefile
+++ b/contrib/btree_gist/Makefile
@@ -17,13 +17,7 @@ REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \SHLIB_LINK += $(filter
-lm,$(LIBS))
 
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/btree_gisttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile
index b775aef..5175371 100644
--- a/contrib/chkpass/Makefile
+++ b/contrib/chkpass/Makefile
@@ -8,13 +8,7 @@ DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sqlSHLIB_LINK = $(filter -lcrypt, $(LIBS))
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/chkpasstop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile
index 6594252..18e0f0f 100644
--- a/contrib/citext/Makefile
+++ b/contrib/citext/Makefile
@@ -7,13 +7,7 @@ DATA = citext--1.0.sql citext--unpackaged--1.0.sqlREGRESS = citext
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/citexttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile
index b5cd5d0..635d707 100644
--- a/contrib/cube/Makefile
+++ b/contrib/cube/Makefile
@@ -12,16 +12,10 @@ EXTRA_CLEAN = y.tab.c y.tab.hSHLIB_LINK += $(filter -lm, $(LIBS))
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/cubetop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
# cubescan is compiled as part of cubeparse
diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile
index 32314a0..f7b4acf 100644
--- a/contrib/dblink/Makefile
+++ b/contrib/dblink/Makefile
@@ -14,13 +14,7 @@ REGRESS = dblink# the db name is hard-coded in the testsoverride USE_MODULE_DB =
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/dblinktop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile
index 3a3fc36..0a8b511 100644
--- a/contrib/dict_int/Makefile
+++ b/contrib/dict_int/Makefile
@@ -8,13 +8,7 @@ DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sqlREGRESS = dict_int
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/dict_inttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile
index ce92baa..e7f6286 100644
--- a/contrib/dict_xsyn/Makefile
+++ b/contrib/dict_xsyn/Makefile
@@ -9,13 +9,7 @@ DATA_TSEARCH = xsyn_sample.rulesREGRESS = dict_xsyn
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/dict_xsyntop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile
index 105400f..9c3d3ea 100644
--- a/contrib/dummy_seclabel/Makefile
+++ b/contrib/dummy_seclabel/Makefile
@@ -2,13 +2,7 @@MODULES = dummy_seclabel
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/dummy_seclabeltop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile
index 48a7cf8..d60ed86 100644
--- a/contrib/earthdistance/Makefile
+++ b/contrib/earthdistance/Makefile
@@ -10,13 +10,7 @@ REGRESS_OPTS = --extra-install=contrib/cubeLDFLAGS_SL += $(filter -lm, $(LIBS))
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/earthdistancetop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile
index 4616cec..8c03df4 100644
--- a/contrib/file_fdw/Makefile
+++ b/contrib/file_fdw/Makefile
@@ -9,13 +9,7 @@ REGRESS = file_fdwEXTRA_CLEAN = sql/file_fdw.sql expected/file_fdw.out
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/file_fdwtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile
index 834b679..6e51455 100644
--- a/contrib/fuzzystrmatch/Makefile
+++ b/contrib/fuzzystrmatch/Makefile
@@ -6,16 +6,10 @@ OBJS = fuzzystrmatch.o dmetaphone.oEXTENSION = fuzzystrmatchDATA = fuzzystrmatch--1.0.sql
fuzzystrmatch--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/fuzzystrmatchtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif# levenshtein.c is #included by fuzzystrmatch.cfuzzystrmatch.o: fuzzystrmatch.c levenshtein.c
diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile
index 1236e79..3e258e7 100644
--- a/contrib/hstore/Makefile
+++ b/contrib/hstore/Makefile
@@ -9,13 +9,7 @@ DATA = hstore--1.1.sql hstore--1.0--1.1.sql hstore--unpackaged--1.0.sqlREGRESS = hstore
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/hstoretop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile
index 2cfe997..8e52b41 100644
--- a/contrib/intagg/Makefile
+++ b/contrib/intagg/Makefile
@@ -3,13 +3,7 @@EXTENSION = intaggDATA = intagg--1.0.sql intagg--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/intaggtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile
index 71f820e..4107dc6 100644
--- a/contrib/intarray/Makefile
+++ b/contrib/intarray/Makefile
@@ -8,13 +8,7 @@ DATA = intarray--1.0.sql intarray--unpackaged--1.0.sqlREGRESS = _int
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/intarraytop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile
index bd8f193..1f8e189 100644
--- a/contrib/isn/Makefile
+++ b/contrib/isn/Makefile
@@ -5,13 +5,7 @@ MODULES = isnEXTENSION = isnDATA = isn--1.0.sql isn--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/isntop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile
index 66b337c..fa7dfe9 100644
--- a/contrib/lo/Makefile
+++ b/contrib/lo/Makefile
@@ -5,13 +5,7 @@ MODULES = loEXTENSION = loDATA = lo--1.0.sql lo--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/lotop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile
index 65d42f8..4c4fd3f 100644
--- a/contrib/ltree/Makefile
+++ b/contrib/ltree/Makefile
@@ -10,13 +10,7 @@ DATA = ltree--1.0.sql ltree--unpackaged--1.0.sqlREGRESS = ltree
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/ltreetop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/oid2name/Makefile b/contrib/oid2name/Makefile
index f695b4a..10f4f58 100644
--- a/contrib/oid2name/Makefile
+++ b/contrib/oid2name/Makefile
@@ -9,13 +9,7 @@ OBJS    = oid2name.oPG_CPPFLAGS = -I$(libpq_srcdir)PG_LIBS = $(libpq_pgport)
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/oid2nametop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile
index 0e267eb..ec0b279 100644
--- a/contrib/pageinspect/Makefile
+++ b/contrib/pageinspect/Makefile
@@ -7,13 +7,7 @@ EXTENSION = pageinspectDATA = pageinspect--1.1.sql pageinspect--1.0--1.1.sql \
pageinspect--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pageinspecttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile
index 4829bfd..0e2338c 100644
--- a/contrib/passwordcheck/Makefile
+++ b/contrib/passwordcheck/Makefile
@@ -7,13 +7,7 @@ OBJS = passwordcheck.o# PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"'#
SHLIB_LINK= -lcrack
 
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/passwordchecktop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_archivecleanup/Makefile b/contrib/pg_archivecleanup/Makefile
index 39c55d8..e746023 100644
--- a/contrib/pg_archivecleanup/Makefile
+++ b/contrib/pg_archivecleanup/Makefile
@@ -6,13 +6,7 @@ PGAPPICON = win32PROGRAM = pg_archivecleanupOBJS    = pg_archivecleanup.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_archivecleanuptop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile
index 323c0ac..06d2c30 100644
--- a/contrib/pg_buffercache/Makefile
+++ b/contrib/pg_buffercache/Makefile
@@ -6,13 +6,7 @@ OBJS = pg_buffercache_pages.oEXTENSION = pg_buffercacheDATA = pg_buffercache--1.0.sql
pg_buffercache--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_buffercachetop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile
index b2e3ba3..f028c05 100644
--- a/contrib/pg_freespacemap/Makefile
+++ b/contrib/pg_freespacemap/Makefile
@@ -6,13 +6,7 @@ OBJS = pg_freespacemap.oEXTENSION = pg_freespacemapDATA = pg_freespacemap--1.0.sql
pg_freespacemap--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_freespacemaptop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_standby/Makefile b/contrib/pg_standby/Makefile
index b7c6ae9..493624a 100644
--- a/contrib/pg_standby/Makefile
+++ b/contrib/pg_standby/Makefile
@@ -6,13 +6,7 @@ PGAPPICON = win32PROGRAM = pg_standbyOBJS    = pg_standby.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_standbytop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile
index e8aed61..ad717b5 100644
--- a/contrib/pg_stat_statements/Makefile
+++ b/contrib/pg_stat_statements/Makefile
@@ -7,13 +7,7 @@ EXTENSION = pg_stat_statementsDATA = pg_stat_statements--1.1.sql pg_stat_statements--1.0--1.1.sql \
pg_stat_statements--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_stat_statementstop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_test_fsync/Makefile b/contrib/pg_test_fsync/Makefile
index b456429..2cb05a5 100644
--- a/contrib/pg_test_fsync/Makefile
+++ b/contrib/pg_test_fsync/Makefile
@@ -6,13 +6,7 @@ PGAPPICON = win32PROGRAM  = pg_test_fsyncOBJS = pg_test_fsync.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_test_fsynctop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_test_timing/Makefile b/contrib/pg_test_timing/Makefile
index b8b266a..83c99c0 100644
--- a/contrib/pg_test_timing/Makefile
+++ b/contrib/pg_test_timing/Makefile
@@ -6,13 +6,7 @@ PGAPPICON = win32PROGRAM  = pg_test_timingOBJS = pg_test_timing.o
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_test_timingtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile
index 0d549f8..0b0ee44 100644
--- a/contrib/pg_trgm/Makefile
+++ b/contrib/pg_trgm/Makefile
@@ -8,13 +8,7 @@ DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sqlREGRESS = pg_trgm
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_trgmtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_upgrade/Makefile b/contrib/pg_upgrade/Makefile
index bbb14a1..41612a3 100644
--- a/contrib/pg_upgrade/Makefile
+++ b/contrib/pg_upgrade/Makefile
@@ -13,16 +13,10 @@ PG_LIBS = $(libpq_pgport)EXTRA_CLEAN = analyze_new_cluster.sh delete_old_cluster.sh log/
tmp_check/
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_upgradetop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endifcheck: test.sh all    MAKE=$(MAKE) bindir=$(bindir) libdir=$(libdir) $(SHELL) $< --install
diff --git a/contrib/pg_upgrade_support/Makefile b/contrib/pg_upgrade_support/Makefile
index f7def16..4214585 100644
--- a/contrib/pg_upgrade_support/Makefile
+++ b/contrib/pg_upgrade_support/Makefile
@@ -1,16 +1,10 @@# contrib/pg_upgrade_support/Makefile
-PGFILEDESC = "pg_upgrade_support - server-side functions for pg_upgrade"
+###PGFILEDESC = "pg_upgrade_support - server-side functions for pg_upgrade"MODULES = pg_upgrade_support
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_upgrade_supporttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile
index 22bd8dc..23fb8f7 100644
--- a/contrib/pg_xlogdump/Makefile
+++ b/contrib/pg_xlogdump/Makefile
@@ -12,16 +12,10 @@ RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pg_xlogdumptop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endifoverride CPPFLAGS := -DFRONTEND $(CPPFLAGS)
diff --git a/contrib/pgbench/Makefile b/contrib/pgbench/Makefile
index b8f5fb4..98646ee 100644
--- a/contrib/pgbench/Makefile
+++ b/contrib/pgbench/Makefile
@@ -9,16 +9,10 @@ OBJS    = pgbench.oPG_CPPFLAGS = -I$(libpq_srcdir)PG_LIBS = $(libpq_pgport) $(PTHREAD_LIBS)
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pgbenchtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endififneq ($(PORTNAME), win32)override CFLAGS += $(PTHREAD_CFLAGS)
diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile
index dadec95..17c620d 100644
--- a/contrib/pgcrypto/Makefile
+++ b/contrib/pgcrypto/Makefile
@@ -36,16 +36,10 @@ REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \EXTRA_CLEAN = gen-rtab
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pgcryptotop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif# Add libraries that pgcrypto depends (or might depend) on into the# shared library link.  (The order in which
youlist them here doesn't
 
diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile
index fe80423..4640403 100644
--- a/contrib/pgrowlocks/Makefile
+++ b/contrib/pgrowlocks/Makefile
@@ -6,13 +6,7 @@ OBJS        = pgrowlocks.oEXTENSION = pgrowlocksDATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql
pgrowlocks--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pgrowlockstop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile
index fc893d8..d9f7802 100644
--- a/contrib/pgstattuple/Makefile
+++ b/contrib/pgstattuple/Makefile
@@ -8,13 +8,7 @@ DATA = pgstattuple--1.1.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1REGRESS = pgstattuple
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/pgstattupletop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile
index 8c49720..b584a91 100644
--- a/contrib/postgres_fdw/Makefile
+++ b/contrib/postgres_fdw/Makefile
@@ -15,13 +15,7 @@ REGRESS = postgres_fdw# the db name is hard-coded in the testsoverride USE_MODULE_DB =
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/postgres_fdwtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile
index fb9c576..e37ae29 100644
--- a/contrib/seg/Makefile
+++ b/contrib/seg/Makefile
@@ -10,16 +10,10 @@ REGRESS = segEXTRA_CLEAN = y.tab.c y.tab.h
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/segtop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
# segscan is compiled as part of segparse
diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile
index ff3a61d..d3aa3dd 100644
--- a/contrib/sepgsql/Makefile
+++ b/contrib/sepgsql/Makefile
@@ -9,15 +9,9 @@ DATA_built = sepgsql.sql# we have to clean those result files explicitlyEXTRA_CLEAN = -r
$(pg_regress_clean_files)tmp/ *.pp sepgsql-regtest.if sepgsql-regtest.fc
 
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/sepgsqltop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endifSHLIB_LINK += -lselinux
diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile
index 0c11bfc..2af5c01 100644
--- a/contrib/spi/Makefile
+++ b/contrib/spi/Makefile
@@ -18,13 +18,7 @@ PG_CPPFLAGS = -DREFINT_VERBOSELDFLAGS_SL += -L$(top_builddir)/src/port -lpgport
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/spitop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile
index 0dee6ed..5708660 100644
--- a/contrib/sslinfo/Makefile
+++ b/contrib/sslinfo/Makefile
@@ -6,15 +6,9 @@ OBJS = sslinfo.oEXTENSION = sslinfoDATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/sslinfotop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endifSHLIB_LINK += $(filter -lssl -lcrypto -lssleay32 -leay32, $(LIBS))
diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile
index eb10893..695a7f3 100644
--- a/contrib/tablefunc/Makefile
+++ b/contrib/tablefunc/Makefile
@@ -9,13 +9,7 @@ REGRESS = tablefuncLDFLAGS_SL += $(filter -lm, $(LIBS))
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/tablefunctop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile
index 7bac5e3..e4ea2a6 100644
--- a/contrib/tcn/Makefile
+++ b/contrib/tcn/Makefile
@@ -5,13 +5,7 @@ MODULES = tcnEXTENSION = tcnDATA = tcn--1.0.sql
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/tcntop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile
index b9766cb..67711f5 100644
--- a/contrib/test_parser/Makefile
+++ b/contrib/test_parser/Makefile
@@ -8,13 +8,7 @@ DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sqlREGRESS = test_parser
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/test_parsertop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile
index d260fd0..a065f0f 100644
--- a/contrib/tsearch2/Makefile
+++ b/contrib/tsearch2/Makefile
@@ -7,13 +7,7 @@ DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sqlREGRESS = tsearch2
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/tsearch2top_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile
index f0be62d..53f33db 100644
--- a/contrib/unaccent/Makefile
+++ b/contrib/unaccent/Makefile
@@ -13,13 +13,7 @@ REGRESS = unaccentENCODING = UTF8NO_LOCALE = 1
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/unaccenttop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile
index 9b2d2e3..44af514 100644
--- a/contrib/uuid-ossp/Makefile
+++ b/contrib/uuid-ossp/Makefile
@@ -8,13 +8,7 @@ DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sqlSHLIB_LINK += $(OSSP_UUID_LIBS)
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/uuid-ossptop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/vacuumlo/Makefile b/contrib/vacuumlo/Makefile
index b658f9b..bc257ae 100644
--- a/contrib/vacuumlo/Makefile
+++ b/contrib/vacuumlo/Makefile
@@ -9,13 +9,7 @@ OBJS    = vacuumlo.oPG_CPPFLAGS = -I$(libpq_srcdir)PG_LIBS = $(libpq_pgport)
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/vacuumlotop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile
index edf4105..ea9e2c7 100644
--- a/contrib/worker_spi/Makefile
+++ b/contrib/worker_spi/Makefile
@@ -2,13 +2,7 @@MODULES = worker_spi
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/worker_spitop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile
index be3d018..2b97c35 100644
--- a/contrib/xml2/Makefile
+++ b/contrib/xml2/Makefile
@@ -10,13 +10,7 @@ REGRESS = xml2SHLIB_LINK += $(filter -lxslt, $(LIBS)) -lxml2
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-elsesubdir = contrib/xml2top_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude
$(top_srcdir)/contrib/contrib-global.mk
-endif
-- 
1.7.10.4





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: [PATCH] Add session_preload_libraries configuration parameter
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: how to find out whether a view is updatable