-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
43 lines (33 loc) · 1.3 KB
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
41
42
43
EXTENSION = replisome
MODULE_big = $(EXTENSION)
OBJS = src/replisome.o src/executor.o src/includes.o src/jsonbutils.o \
src/reldata.o
REGRESS = --inputdir=tests \
init insert1 cmdline update1 update2 update3 update4 delete1 delete2 \
delete3 delete4 include repschema row_filter savepoint specialvalue \
toast bytea
# Grab the extension version (for extension upgrade) from control file
EXTVER = $(shell grep 'default_version' $(EXTENSION).control \
| sed "s/\([^']\+'\)\([^']\+\)\('.*\)/\2/")
# Grab the replisome version (to check protocol compatibility) from python code
RSVER = $(shell grep '^VERSION' lib/replisome/version.py \
| sed "s/\([^'\"]\+'\)\([^'\"]\+\)\('.*\)/\2/")
DATA_built = sql/$(EXTENSION)--$(EXTVER).sql
PG_CPPFLAGS = -DREPLISOME_VERSION=$(RSVER)
EXTRA_CLEAN = lib/*/*.pyc lib/*/*/*.pyc tests/*/*.pyc \
lib/*/__pycache__/ lib/*/*/__pycache__ tests/*/__pycache__/ \
.eggs .cache lib/*.egg-info tests/build tests/playbook.retry
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
sql/$(EXTENSION)--$(EXTVER).sql: sql/$(EXTENSION).sql
cat $< > $@
# make installcheck
#
# It can be run but you need to add the following parameters to
# postgresql.conf:
#
# wal_level = logical
# max_replication_slots = 4
#
# Also, you should start the server before executing it.