-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 915 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 915 Bytes
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
EXTENSION = pg_timelord
EXTVERSION = $(shell grep default_version $(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
TESTS = $(wildcard test/sql/*.sql)
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --inputdir=test
DOCS = $(wildcard README.md)
PG_CONFIG = pg_config
MODULE_big = pg_timelord
OBJS = pg_timelord.o
all:
release-zip: all
git archive --format zip --prefix=pg_timelord-${EXTVERSION}/ --output ./pg_timelord-${EXTVERSION}.zip HEAD
unzip ./pg_timelord-$(EXTVERSION).zip
rm ./pg_timelord-$(EXTVERSION).zip
rm ./pg_timelord-$(EXTVERSION)/.gitignore
sed -i -e "s/__VERSION__/$(EXTVERSION)/g" ./pg_timelord-$(EXTVERSION)/META.json
zip -r ./pg_timelord-$(EXTVERSION).zip ./pg_timelord-$(EXTVERSION)/
rm ./pg_timelord-$(EXTVERSION) -rf
DATA = $(wildcard *--*.sql)
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)