-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathMakefile
40 lines (32 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# contrib/pg_pathman/Makefile
MODULE_big = pg_pathman
OBJS = src/init.o src/utils.o src/runtimeappend.o src/runtime_merge_append.o src/pg_pathman.o src/dsm_array.o \
src/rangeset.o src/pl_funcs.o src/worker.o src/hooks.o src/nodes_common.o $(WIN32RES)
EXTENSION = pg_pathman
EXTVERSION = 0.1
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
PGFILEDESC = "pg_pathman - partitioning tool"
REGRESS = pg_pathman
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
EXTRA_CLEAN = $(EXTENSION)--$(EXTVERSION).sql ./isolation_output
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_pathman
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
$(EXTENSION)--$(EXTVERSION).sql: init.sql hash.sql range.sql
cat $^ > $@
ISOLATIONCHECKS=insert_trigger rollback_on_create_partitions
submake-isolation:
$(MAKE) -C $(top_builddir)/src/test/isolation all
isolationcheck: | submake-isolation
$(MKDIR_P) isolation_output
$(pg_isolation_regress_check) \
--temp-config=$(top_srcdir)/$(subdir)/conf.add \
--outputdir=./isolation_output \
$(ISOLATIONCHECKS)