From b74aff27407c93e242d78ac51902c9efb5329232 Mon Sep 17 00:00:00 2001 From: teodor Date: Fri, 18 Sep 2009 14:56:15 +0000 Subject: [PATCH] Add usage of PG_XS. By Jeff --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d36bf4..78d2dc0 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,13 @@ DATA_built = wildspeed.sql DATA = uninstall_wildspeed.sql REGRESS = wildspeed - +ifdef USE_PGXS +PG_CONFIG = pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) +include $(PGXS) +else subdir = contrib/wildspeed top_builddir = ../.. include $(top_builddir)/src/Makefile.global - include $(top_srcdir)/contrib/contrib-global.mk +endif \ No newline at end of file -- 2.37.3