@@ -11,14 +11,10 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
11
11
src/rumscan.o src/rumutil.o src/rumvacuum.o src/rumvalidate.o \
12
12
src/btree_rum.o src/rum_arr_utils.o $(WIN32RES )
13
13
14
- DATA_first = rum--1.0.sql
15
14
DATA_updates = rum--1.0--1.1.sql rum--1.1--1.2.sql \
16
15
rum--1.2--1.3.sql
17
16
18
- DATA = $(DATA_first ) rum--$(EXTVERSION ) .sql $(DATA_updates )
19
-
20
- # Do not use DATA_built. It removes built files if clean target was used
21
- SQL_built = rum--$(EXTVERSION ) .sql $(DATA_updates )
17
+ DATA_built = $(EXTENSION ) --$(EXTVERSION ) .sql
22
18
23
19
INCLUDES = rum.h rumsort.h
24
20
RELATIVE_INCLUDES = $(addprefix src/, $(INCLUDES ) )
@@ -28,8 +24,8 @@ LDFLAGS_SL += $(filter -lm, $(LIBS))
28
24
REGRESS = security rum rum_validate rum_hash ruminv timestamp orderby orderby_hash \
29
25
altorder altorder_hash limits \
30
26
int2 int4 int8 float4 float8 money oid \
31
- time timetz date interval \
32
- macaddr inet cidr text varchar char bytea bit varbit \
27
+ time timetz date interval \
28
+ macaddr inet cidr text varchar char bytea bit varbit \
33
29
numeric rum_weight expr
34
30
35
31
TAP_TESTS = 1
@@ -47,6 +43,9 @@ include $(top_builddir)/src/Makefile.global
47
43
include $(top_srcdir ) /contrib/contrib-global.mk
48
44
endif
49
45
46
+ $(EXTENSION ) --$(EXTVERSION ) .sql : rum_init.sql
47
+ cat $^ > $@
48
+
50
49
ifeq ($(MAJORVERSION ) , 9.6)
51
50
# arrays are not supported on 9.6
52
51
else
@@ -61,16 +60,6 @@ wal-check: temp-install
61
60
check : wal-check
62
61
endif
63
62
64
- all : $(SQL_built )
65
-
66
- # 9.6 requires 1.3 file but 10.0 could live with update files
67
- rum--$(EXTVERSION ) .sql : $(DATA_first ) $(DATA_updates )
68
- cat $(DATA_first ) $(DATA_updates ) > rum--$(EXTVERSION ) .sql
69
-
70
- # rule for updates, e.g. rum--1.0--1.1.sql
71
- rum--% .sql : gen_rum_sql--% .pl
72
- perl $< > $@
73
-
74
63
install : installincludes
75
64
76
65
installincludes :
@@ -92,5 +81,5 @@ submake-rum:
92
81
93
82
isolationcheck : | submake-isolation submake-rum temp-install
94
83
$(pg_isolation_regress_check ) \
95
- --temp-config $(top_srcdir ) /contrib/rum/logical.conf \
84
+ --temp-config $(top_srcdir ) /contrib/rum/logical.conf \
96
85
$(ISOLATIONCHECKS )
0 commit comments