fix: make pg_config be settable from outside the makefile

Patch by Marco Nenciarini <mnencia@debian.org>
This commit is contained in:
Christian Kruse
2014-01-21 14:22:59 +01:00
parent c81793b63f
commit a89aa02c68
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ DATA=uninstall_repmgr_funcs.sql
OBJS=repmgr_funcs.o
ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/repmgr/sql