-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
32 lines (24 loc) · 887 Bytes
/
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
EXTVERSION = 0.0.1
REGRESS = 01_general 02_partitioning
REGRESS_OPTS = --inputdir=test
PGFILEDESC = "pg_anonymize - perform data anonymization transparently on the database"
PG_CONFIG ?= pg_config
MODULE_big = pg_anonymize
OBJS = pg_anonymize.o
all:
release-zip: all
git archive --format zip --prefix=pg_anonymize-${EXTVERSION}/ --output ./pg_anonymize-${EXTVERSION}.zip HEAD
unzip ./pg_anonymize-$(EXTVERSION).zip
rm ./pg_anonymize-$(EXTVERSION).zip
rm ./pg_anonymize-$(EXTVERSION)/.gitignore
sed -i -e "s/__VERSION__/$(EXTVERSION)/g" ./pg_anonymize-$(EXTVERSION)/META.json
zip -r ./pg_anonymize-$(EXTVERSION).zip ./pg_anonymize-$(EXTVERSION)/
rm ./pg_anonymize-$(EXTVERSION) -rf
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
ifneq ($(MAJORVERSION), 10)
REGRESS += 02_partitioning_hash
endif
REGRESS += 03_inheritance \
10_security \
99_cleanup