Skip to content

Commit 8fe15fc

Browse files
committed
Disable declarative syntax for in-tree builds
1 parent dd072e5 commit 8fe15fc

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Diff for: Makefile

+4-16
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,22 @@ ifdef USE_PGXS
7171
PG_CONFIG=pg_config
7272
PGXS := $(shell $(PG_CONFIG) --pgxs)
7373
VNUM := $(shell $(PG_CONFIG) --version | awk '{print $$2}')
74-
else
75-
subdir = contrib/pg_pathman
76-
top_builddir = ../..
77-
include $(top_builddir)/src/Makefile.global
78-
endif
79-
80-
# our standard version could also use declarative syntax
81-
ifdef PGPRO_EDITION
82-
ifeq ($(PGPRO_EDITION),standard)
83-
VNUM := $(VERSION)
84-
endif
85-
endif
8674

87-
ifdef VNUM
75+
# check for declarative syntax
8876
ifeq ($(VNUM),$(filter 10% 11%,$(VNUM)))
8977
REGRESS += pathman_declarative
9078
OBJS += src/declarative.o
9179
override PG_CPPFLAGS += -DENABLE_DECLARATIVE
9280
endif
93-
endif
9481

95-
ifdef USE_PGXS
9682
include $(PGXS)
9783
else
84+
subdir = contrib/pg_pathman
85+
top_builddir = ../..
86+
include $(top_builddir)/src/Makefile.global
9887
include $(top_srcdir)/contrib/contrib-global.mk
9988
endif
10089

101-
10290
$(EXTENSION)--$(EXTVERSION).sql: init.sql hash.sql range.sql
10391
cat $^ > $@
10492

0 commit comments

Comments
 (0)