8000 simplified Makefile · postgrespro/rum@9109815 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9109815

Browse files
committed
simplified Makefile
1 parent 2f067cd commit 9109815

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
1010
EXTENSION = rum
1111
EXTVERSION = 1.2
1212
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)
1415
PGFILEDESC = "RUM index access method"
1516
INCLUDES = src/rum.h src/rumsort.h
1617

@@ -39,15 +40,12 @@ wal-check: temp-install
3940

4041
all: rum--$(EXTVERSION).sql
4142

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
4545

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 $< > $@
5149

5250
install: installincludes
5351

0 commit comments

Comments
 (0)
0