-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
executable file
·31 lines (21 loc) · 896 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
EXTENSION = pgtt
EXTVERSION = $(shell grep default_version $(EXTENSION).control | \
sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
PGFILEDESC = "pgtt - Global Temporary Tables for PostgreSQL"
PG_CONFIG = pg_config
PG_CPPFLAGS = -I$(libpq_srcdir) -Wno-uninitialized -Wno-ignored-attributes
PG_LDFLAGS = -L$(libpq_builddir) -lpq
PG_LIBDIR := $(shell $(PG_CONFIG) --libdir)
SHLIB_LINK = $(libpq)
DOCS = pgtt.md
MODULES = pgtt
DATA = $(wildcard updates/*--*.sql) $(wildcard sql/*.sql)
TESTS = 00_init 01_oncommitdelete 02_oncommitpreserve \
03_createontruncate 04_rename 05_useindex \
06_createas 07_createlike 08_plplgsql \
09_transaction 10_foreignkey 11_after_error \
12_droptable
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --inputdir=test
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)