File tree Expand file tree Collapse file tree 3 files changed +1
-39
lines changed Expand file tree Collapse file tree 3 files changed +1
-39
lines changed Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 2011, Itagaki Takahiro
6
6
# Portions Copyright (c) 2012, The Reorg Development Team
7
7
#
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
15
8
16
- ifdef USE_PGXS
9
+ USE_PGXS = 1
17
10
PG_CONFIG = pg_config
18
11
PGXS := $(shell $(PG_CONFIG ) --pgxs)
19
12
include $(PGXS )
20
- else
21
- subdir = pg_repack
22
- include $(makefile_global )
23
- include $(top_srcdir ) /contrib/contrib-global.mk
24
- endif
25
13
26
14
SUBDIRS = bin lib
27
15
Original file line number Diff line number Diff line change @@ -19,23 +19,10 @@ PG_CPPFLAGS = -I$(libpq_srcdir)
19
19
endif
20
20
PG_LIBS = $(libpq )
21
21
22
- ifndef USE_PGXS
23
- top_builddir = ../../..
24
- makefile_global = $(top_builddir ) /src/Makefile.global
25
- ifeq "$(wildcard $(makefile_global ) ) " ""
26
22
USE_PGXS = 1 # use pgxs if not in contrib directory
27
- endif
28
- endif
29
-
30
- ifdef USE_PGXS
31
23
PG_CONFIG = pg_config
32
24
PGXS := $(shell $(PG_CONFIG ) --pgxs)
33
25
include $(PGXS )
34
- else
35
- subdir = contrib/$(MODULE_big )
36
- include $(makefile_global )
37
- include $(top_srcdir ) /contrib/contrib-global.mk
38
- endif
39
26
40
27
# remove dependency to libxml2 and libxslt
41
28
LIBS := $(filter-out -lxml2, $(LIBS ) )
Original file line number Diff line number Diff line change @@ -20,23 +20,10 @@ EXTVER = $(shell grep -e '^default_version' $(EXTENSION).control \
20
20
DATA_built = pg_repack.sql pg_repack--$(EXTVER ) .sql
21
21
DATA = pg_repack--1.1.7--1.1.8.sql uninstall_pg_repack.sql
22
22
23
- ifndef USE_PGXS
24
- top_builddir = ../../..
25
- makefile_global = $(top_builddir ) /src/Makefile.global
26
- ifeq "$(wildcard $(makefile_global ) ) " ""
27
23
USE_PGXS = 1 # use pgxs if not in contrib directory
28
- endif
29
- endif
30
-
31
- ifdef USE_PGXS
32
24
PG_CONFIG = pg_config
33
25
PGXS := $(shell $(PG_CONFIG ) --pgxs)
34
26
include $(PGXS )
35
- else
36
- subdir = contrib/$(MODULE_big )
37
- include $(makefile_global )
38
- include $(top_srcdir ) /contrib/contrib-global.mk
39
- endif
40
27
41
28
# remove dependency to libxml2 and libxslt
42
29
LIBS := $(filter-out -lxml2, $(LIBS ) )
You can’t perform that action at this time.
0 commit comments