Skip to content

Commit bf3b5a3

Browse files
committed
Allow to redefinition of PG_CONFIG to use with several versions of pgsql at same time
1 parent 715de7a commit bf3b5a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ DATA = memstat--1.0.sql
44
OBJS = memstat.o
55
REGRESS = memstat
66

7+
ifndef PG_CONFIG
8+
PG_CONFIG = pg_config
9+
endif
10+
711
ifdef USE_PGXS
8-
PGXS := $(shell pg_config --pgxs)
12+
PGXS := $(shell ${PG_CONFIG} --pgxs)
913
include $(PGXS)
1014
else
1115
subdir = contrib/memstat

0 commit comments

Comments
 (0)