From: Robert Haas Date: Mon, 24 Jan 2011 04:07:55 +0000 (-0500) Subject: PGXS support for contrib/hstore X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=41611f16e933dafa9c3ae0477f89537ea1459eb6;p=users%2Fhanada%2Fpostgres.git PGXS support for contrib/hstore Joey Adams --- diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index e466b6f706..1d533fdd60 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