forked from jeff-davis/PostgreSQL-Temporal
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·30 lines (24 loc) · 887 Bytes
/
Makefile
File metadata and controls
executable file
·30 lines (24 loc) · 887 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
28
29
30
EXTENSION = temporal
EXTVERSION = 0.7.1
DATA = sql/temporal--0.7.1.sql
DATA_built = temporal.sql
DOCS = doc/html/abstract.html \
doc/html/index.html \
doc/html/index.dist.html \
doc/html/reference.html \
doc/html/tutorial.html
TESTS = test/sql/period.sql
REGRESS = period
REGRESS_OPTS = --inputdir=test --load-language=plpgsql
MODULES = temporal
PG_CONFIG = pg_config
PG91 = $(shell $(PG_CONFIG) --version | grep -qE " 8\.| 9\.0" && echo no || echo yes)
ifeq ($(PG91),yes)
all: sql/$(EXTENSION)--$(EXTVERSION).sql
sql/$(EXTENSION)--$(EXTVERSION).sql: $(EXTENSION).sql.in
cp $< $@
DATA = $(wildcard sql/*--*.sql) sql/$(EXTENSION)--$(EXTVERSION).sql
EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql
endif
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)