Skip to content

Commit 71af7f2

Browse files
committed
Dropped support for building "in tree": always use PGXS
1 parent 1d60a94 commit 71af7f2

File tree

3 files changed

+1
-39
lines changed

3 files changed

+1
-39
lines changed

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,11 @@
55
# Portions Copyright (c) 2011, Itagaki Takahiro
66
# Portions Copyright (c) 2012, The Reorg Development Team
77
#
8-
ifndef USE_PGXS
9-
top_builddir = ../..
10-
makefile_global = $(top_builddir)/src/Makefile.global
11-
ifeq "$(wildcard $(makefile_global))" ""
12-
USE_PGXS = 1 # use pgxs if not in contrib directory
13-
endif
14-
endif
158

16-
ifdef USE_PGXS
9+
USE_PGXS = 1
1710
PG_CONFIG = pg_config
1811
PGXS := $(shell $(PG_CONFIG) --pgxs)
1912
include $(PGXS)
20-
else
21-
subdir = pg_repack
22-
include $(makefile_global)
23-
include $(top_srcdir)/contrib/contrib-global.mk
24-
endif
2513

2614
SUBDIRS = bin lib
2715

bin/Makefile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,10 @@ PG_CPPFLAGS = -I$(libpq_srcdir)
1919
endif
2020
PG_LIBS = $(libpq)
2121

22-
ifndef USE_PGXS
23-
top_builddir = ../../..
24-
makefile_global = $(top_builddir)/src/Makefile.global
25-
ifeq "$(wildcard $(makefile_global))" ""
2622
USE_PGXS = 1 # use pgxs if not in contrib directory
27-
endif
28-
endif
29-
30-
ifdef USE_PGXS
3123
PG_CONFIG = pg_config
3224
PGXS := $(shell $(PG_CONFIG) --pgxs)
3325
include $(PGXS)
34-
else
35-
subdir = contrib/$(MODULE_big)
36-
include $(makefile_global)
37-
include $(top_srcdir)/contrib/contrib-global.mk
38-
endif
3926

4027
# remove dependency to libxml2 and libxslt
4128
LIBS := $(filter-out -lxml2, $(LIBS))

lib/Makefile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,10 @@ EXTVER = $(shell grep -e '^default_version' $(EXTENSION).control \
2020
DATA_built = pg_repack.sql pg_repack--$(EXTVER).sql
2121
DATA = pg_repack--1.1.7--1.1.8.sql uninstall_pg_repack.sql
2222

23-
ifndef USE_PGXS
24-
top_builddir = ../../..
25-
makefile_global = $(top_builddir)/src/Makefile.global
26-
ifeq "$(wildcard $(makefile_global))" ""
2723
USE_PGXS = 1 # use pgxs if not in contrib directory
28-
endif
29-
endif
30-
31-
ifdef USE_PGXS
3224
PG_CONFIG = pg_config
3325
PGXS := $(shell $(PG_CONFIG) --pgxs)
3426
include $(PGXS)
35-
else
36-
subdir = contrib/$(MODULE_big)
37-
include $(makefile_global)
38-
include $(top_srcdir)/contrib/contrib-global.mk
39-
endif
4027

4128
# remove dependency to libxml2 and libxslt
4229
LIBS := $(filter-out -lxml2, $(LIBS))

0 commit comments

Comments
 (0)