Skip to content

Commit 7307988

Browse files
committed
Do not remove generated *.sql files
1 parent 1c6ae7f commit 7307988

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
1111
src/rumscan.o src/rumutil.o src/rumvacuum.o src/rumvalidate.o \
1212
src/btree_rum.o src/rum_arr_utils.o $(WIN32RES)
1313

14-
DATA = rum--1.0.sql
14+
DATA_first = rum--1.0.sql
1515
DATA_updates = rum--1.0--1.1.sql rum--1.1--1.2.sql
16+
DATA = $(DATA_first) rum--$(EXTVERSION).sql $(DATA_updates)
17+
18+
# Do not use DATA_built. It removes built files if clean target was used
1619
SQL_built = rum--$(EXTVERSION).sql $(DATA_updates)
1720

1821
INCLUDES = rum.h rumsort.h
@@ -50,8 +53,8 @@ wal-check: temp-install
5053
all: $(SQL_built)
5154

5255
#9.6 requires 1.2 file but 10.0 could live with update files
53-
rum--$(EXTVERSION).sql: $(DATA) $(DATA_updates)
54-
cat $(DATA) $(DATA_updates) > rum--$(EXTVERSION).sql
56+
rum--$(EXTVERSION).sql: $(DATA_first) $(DATA_updates)
57+
cat $(DATA_first) $(DATA_updates) > rum--$(EXTVERSION).sql
5558

5659
# rule for updates, e.g. rum--1.0--1.1.sql
5760
rum--%.sql: gen_rum_sql--%.pl
@@ -62,13 +65,11 @@ install: installincludes
6265
installincludes:
6366
$(INSTALL) -d '$(DESTDIR)$(includedir_server)/'
6467
$(INSTALL_DATA) $(addprefix $(srcdir)/, $(RELATIVE_INCLUDES)) '$(DESTDIR)$(includedir_server)/'
65-
$(INSTALL_DATA) $(SQL_built) '$(DESTDIR)$(datadir)/$(datamoduledir)/'
6668

6769
uninstall: uninstallincludes
6870

6971
uninstallincludes:
7072
rm -f $(addprefix '$(DESTDIR)$(includedir_server)/', $(INCLUDES))
71-
rm -f $(addprefix '$(DESTDIR)$(datadir)/$(datamoduledir)'/, $(notdir $(SQL_built)))
7273

7374
ISOLATIONCHECKS= predicate-rum predicate-rum-2
7475

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy