Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Florents-Tselai committed Mar 1, 2024
1 parent e699a68 commit a55bdf8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ PGFILEDESC = "Use jq in Postgres"

DATA = $(wildcard sql/*--*.sql)

PKG_CONFIG ?= pkg-config

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
CFLAGS += $(shell $(PKG_CONFIG) --cflags jq)
LIBS += $(shell $(CURL_CONFIG) --libs jq)
SHLIB_LINK := $(LIBS)

PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
Expand Down

0 comments on commit a55bdf8

Please sign in to comment.