-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 757 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 757 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
include pgxntool/base.mk
-- TODO: Remove this after merging pgxntool 0.2.1+
testdeps: $(TEST_SQL_FILES) $(TEST_SOURCE_FILES)
TEST_HELPER_FILES = $(wildcard $(TESTDIR)/helpers/*.sql)
testdeps: $(TEST_HELPER_FILES)
PG94 = $(call test, $(MAJORVER), -eq, 94)
LT94 = $(call test, $(MAJORVER), -lt, 94)
ifeq ($(LT94),yes)
$(error Minimum version of PostgreSQL required is 9.4.0)
endif
# Support for multiple Postgres versions
#
# This is maybe a bit ugly with range_type_functions hard-coded, but for now I
# think simple is better.
ifeq ($(PG94),yes)
PGVER_FILES += sql/range_type_functions_94.sql
endif
PGVER_FILES += sql/range_type_functions_95.sql
EXTRA_CLEAN += sql/range_type_functions.sql
sql/range_type_functions.sql: $(PGVER_FILES)
cat $^ > $@