Skip to content

Commit dd2a58e

Browse files
committed
use PG_CONFIG variable in Makefile
1 parent 0dbd7be commit dd2a58e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ OBJS = pg_dtm.o libdtm.o sockhub/sockhub.o
44
EXTENSION = pg_dtm
55
DATA = pg_dtm--1.0.sql
66

7-
ifndef USE_PGXS
7+
ifndef PG_CONFIG
88
PG_CONFIG = pg_config
9+
endif
10+
911
PGXS := $(shell $(PG_CONFIG) --pgxs)
1012
include $(PGXS)
11-
else
12-
subdir = contrib/pg_dtm
13-
top_builddir = ../..
14-
include $(top_builddir)/src/Makefile.global
15-
include $(top_srcdir)/contrib/contrib-global.mk
16-
endif

0 commit comments

Comments
 (0)