Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 41611f1

Browse files
committed
PGXS support for contrib/hstore
Joey Adams
1 parent c26ac22 commit 41611f1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

contrib/hstore/Makefile

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# contrib/hstore/Makefile
22

3-
subdir = contrib/hstore
4-
top_builddir = ../..
5-
include $(top_builddir)/src/Makefile.global
6-
73
MODULE_big = hstore
84
OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \
95
crc32.o
@@ -12,4 +8,13 @@ DATA_built = hstore.sql
128
DATA = uninstall_hstore.sql
139
REGRESS = hstore
1410

11+
ifdef USE_PGXS
12+
PG_CONFIG = pg_config
13+
PGXS := $(shell $(PG_CONFIG) --pgxs)
14+
include $(PGXS)
15+
else
16+
subdir = contrib/hstore
17+
top_builddir = ../..
18+
include $(top_builddir)/src/Makefile.global
1519
include $(top_srcdir)/contrib/contrib-global.mk
20+
endif

0 commit comments

Comments
 (0)