From 248a2db97044a2102a373d53423947b14738bfeb Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 16 Sep 2020 08:49:25 -0700 Subject: [PATCH] fixup --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 00c991f7a..b3510156a 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,6 @@ MODULE_big = cstore_fdw -ifndef MAJORVERSION - MAJORVERSION := $(basename $(VERSION)) -endif - PG_CPPFLAGS = -std=c11 OBJS = cstore.o cstore_fdw.o cstore_writer.o cstore_reader.o \ cstore_compression.o mod.o cstore_metadata_tables.o cstore_tableam.o @@ -50,6 +46,10 @@ PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) +ifndef MAJORVERSION + MAJORVERSION := $(basename $(VERSION)) +endif + ifeq (,$(findstring $(MAJORVERSION), 9.3 9.4 9.5 9.6 10 11 12)) $(error PostgreSQL 9.3 to 12 is required to compile this extension) endif