-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 616 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (19 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PG_CONFIG ?= pg_config
EXTENSION = pgjq
EXTVERSION = 0.1.0
MODULE_big = $(EXTENSION)
OBJS = pgjq.o
PGFILEDESC = "Use jq in Postgres"
DATA = $(wildcard sql/*--*.sql)
TESTS = $(wildcard test/sql/*.sql)
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --inputdir=test --load-extension=pgjq
# Change this if you have jq installed somewhere else
current_dir = $(shell pwd)
JQ_PREFIX ?= $(current_dir)/jq/build
PG_CPPFLAGS += -I$(JQ_PREFIX)/include
PG_LDFLAGS += -L$(JQ_PREFIX)/lib
SHLIB_LINK += -ljq
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
tdd: clean all uninstall install installcheck