Add usage of PG_XS. By Jeff <lewwid@gmail.com>
authorteodor <teodor>
Fri, 18 Sep 2009 14:56:15 +0000 (14:56 +0000)
committerteodor <teodor>
Fri, 18 Sep 2009 14:56:15 +0000 (14:56 +0000)
Makefile

index 8d36bf4..78d2dc0 100644 (file)
--- 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