Skip to content

Commit db21d31

Browse files
author
Alexander Korotkov
committed
Install rum.h
There could be other extension defining opclasses for RUM. Such extensions would need rum.h. So, we need to install it. Unfortunately, pgxs.mk don't have variable for this. Thus, we define it as new target in Makefile.
1 parent f168633 commit db21d31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
1010
EXTENSION = rum
1111
DATA = rum--1.0.sql
1212
PGFILEDESC = "RUM index access method"
13+
INCLUDES = src/rum.h
1314

1415
REGRESS = rum rum_hash ruminv timestamp orderby orderby_hash altorder \
1516
altorder_hash limits
@@ -29,3 +30,8 @@ endif
2930

3031
wal-check: temp-install
3132
$(prove_check)
33+
34+
install: installincludes
35+
36+
installincludes:
37+
$(INSTALL_DATA) $(addprefix $(srcdir)/, $(INCLUDES)) '$(DESTDIR)$(includedir)/'

0 commit comments

Comments
 (0)