File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
10
10
EXTENSION = rum
11
11
EXTVERSION = 1.2
12
12
DATA = rum--1.0.sql
13
- DATA_built = rum--$(EXTVERSION ) .sql rum--1.0--1.1.sql rum--1.1--1.2.sql
13
+ DATA_updates = rum--1.0--1.1.sql rum--1.1--1.2.sql
14
+ DATA_built = rum--$(EXTVERSION ) .sql $(DATA_updates )
14
15
PGFILEDESC = "RUM index access method"
15
16
INCLUDES = src/rum.h src/rumsort.h
16
17
@@ -39,15 +40,12 @@ wal-check: temp-install
39
40
40
41
all : rum--$(EXTVERSION ) .sql
41
42
42
- # 9.6 requires 1.1 file but 10.0 could live with 1.0 + 1.0-1.1 files
43
- rum--$(EXTVERSION ) .sql : rum--1.0.sql rum--1.0--1.1.sql rum--1.1--1.2.sql
44
- cat rum--1.0.sql rum--1.0--1.1.sql rum--1.1--1.2.sql > rum--$(EXTVERSION ) .sql
43
+ rum--$(EXTVERSION ) .sql : $(DATA ) $(DATA_updates )
44
+ cat $(DATA ) $(DATA_updates ) > rum--$(EXTVERSION ) .sql
45
45
46
- rum--1.0--1.1.sql : Makefile gen_rum_sql--1.0--1.1.pl
47
- perl gen_rum_sql--1.0--1.1.pl > rum--1.0--1.1.sql
48
-
49
- rum--1.1--1.2.sql : Makefile gen_rum_sql--1.1--1.2.pl
50
- perl gen_rum_sql--1.1--1.2.pl > rum--1.1--1.2.sql
46
+ # rule for updates, e.g. rum--1.0--1.1.sql
47
+ rum--% .sql : gen_rum_sql--% .pl
48
+ perl $< > $@
51
49
52
50
install : installincludes
53
51
You can’t perform that action at this time.
0 commit comments