aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-01-23 23:07:55 -0500
committerRobert Haas <rhaas@postgresql.org>2011-01-23 23:07:55 -0500
commit41611f16e933dafa9c3ae0477f89537ea1459eb6 (patch)
tree70f54c623e36a71bb249aa71b75e688c948169b2
parentc26ac226e45fbf84cd63588498c00da9417aebc1 (diff)
downloadpostgresql-41611f16e933dafa9c3ae0477f89537ea1459eb6.tar.gz
postgresql-41611f16e933dafa9c3ae0477f89537ea1459eb6.zip
PGXS support for contrib/hstore
Joey Adams
-rw-r--r--contrib/hstore/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile
index e466b6f7064..1d533fdd602 100644
--- a/contrib/hstore/Makefile
+++ b/contrib/hstore/Makefile
@@ -1,9 +1,5 @@
# contrib/hstore/Makefile
-subdir = contrib/hstore
-top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
-
MODULE_big = hstore
OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \
crc32.o
@@ -12,4 +8,13 @@ DATA_built = hstore.sql
DATA = uninstall_hstore.sql
REGRESS = hstore
+ifdef USE_PGXS
+PG_CONFIG = pg_config
+PGXS := $(shell $(PG_CONFIG) --pgxs)
+include $(PGXS)
+else
+subdir = contrib/hstore
+top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
+endif