We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26ac22 commit 41611f1Copy full SHA for 41611f1
contrib/hstore/Makefile
@@ -1,9 +1,5 @@
1
# contrib/hstore/Makefile
2
3
-subdir = contrib/hstore
4
-top_builddir = ../..
5
-include $(top_builddir)/src/Makefile.global
6
-
7
MODULE_big = hstore
8
OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \
9
crc32.o
@@ -12,4 +8,13 @@ DATA_built = hstore.sql
12
DATA = uninstall_hstore.sql
13
REGRESS = hstore
14
10
11
+ifdef USE_PGXS
+PG_CONFIG = pg_config
+PGXS := $(shell $(PG_CONFIG) --pgxs)
+include $(PGXS)
15
+else
16
+subdir = contrib/hstore
17
+top_builddir = ../..
18
+include $(top_builddir)/src/Makefile.global
19
include $(top_srcdir)/contrib/contrib-global.mk
20
+endif
0 commit comments