-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
38 lines (27 loc) · 983 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
33
34
35
36
37
38
PG_CONFIG = pg_config
pg_version := $(word 2,$(shell $(PG_CONFIG) --version))
indexonlyscan_supported = $(filter-out 6.% 7.% 8.% 9.0% 9.1%,$(pg_version))
# Disable index-only scans here so that the regression test output is
# the same in versions that don't support it.
ifneq (,$(indexonlyscan_supported))
export PGOPTIONS = -c enable_indexonlyscan=off
endif
extension_version = 0
EXTENSION = uint
MODULE_big = uint
OBJS = aggregates.o hash.o hex.o inout.o magic.o misc.o operators.o
DATA_built = uint--$(extension_version).sql
REGRESS = init hash hex operators misc drop
REGRESS_OPTS = --inputdir=test
EXTRA_CLEAN += operators.c operators.sql test/sql/operators.sql
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
uint--$(extension_version).sql: uint.sql hash.sql hex.sql operators.sql
cat $^ >$@
PYTHON ?= python
operators.c operators.sql test/sql/operators.sql: generate.py
$(PYTHON) $< $(MAJORVERSION)
python-check: generate.py
pep8 $^
pyflakes $^
pylint $^