Skip to content

Commit 48df7a3

Browse files
committed
Fix Makefile
1 parent e426c71 commit 48df7a3

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

Makefile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
MODULE_big = pg_pathman
44

5+
# versions of postgresql with declarative partitioning
6+
DECL_CHECK_VERSIONS = 10 11
7+
8+
ifdef USE_PGXS
9+
PG_CONFIG = pg_config
10+
VNUM := $(shell $(PG_CONFIG) --version | awk '{print $$2}')
11+
ifeq ($(VNUM),$(filter $(VNUM), $(DECL_CHECK_VERSIONS)))
12+
EXTRA_REGRESS = pathman_declarative
13+
EXTRA_OBJS = src/declarative.o
14+
endif
15+
endif
16+
include $(PGXS)
17+
518
OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o \
619
src/runtime_append.o src/runtime_merge_append.o src/pg_pathman.o src/rangeset.o \
720
src/pl_funcs.o src/pl_range_funcs.o src/pl_hash_funcs.o src/pathman_workers.o \
@@ -60,23 +73,15 @@ REGRESS = pathman_array_qual \
6073
pathman_update_triggers \
6174
pathman_upd_del \
6275
pathman_utility_stmt \
63-
pathman_views
64-
76+
pathman_views ${EXTRA_REGRESS}
6577

6678
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
6779

6880
EXTRA_CLEAN = pg_pathman--$(EXTVERSION).sql ./isolation_output
6981

70-
DECL_CHECK_VERSIONS = 10 11
71-
7282
ifdef USE_PGXS
7383
PG_CONFIG = pg_config
7484
PGXS := $(shell $(PG_CONFIG) --pgxs)
75-
VNUM := $(shell $(PG_CONFIG) --version | awk '{print $$2}')
76-
ifeq ($(VNUM),$(filter $(VNUM), $(DECL_CHECK_VERSIONS)))
77-
REGRESS += pathman_declarative
78-
OBJS += src/declarative.o
79-
endif
8085
include $(PGXS)
8186
else
8287
subdir = contrib/pg_pathman

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy