Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ EXTVERSION = 0.4.0

PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
HAVE_PGXS := $(if $(wildcard $(PGXS)),1,0)

# PostgreSQL connection defaults for local development/testing.
PGDATABASE ?= postgres
Expand Down Expand Up @@ -53,7 +54,11 @@ TESTS := $(CORE_TESTS) $(INTEGRATION_TESTS) $(PERFORMANCE_TESTS)
REGRESS := $(notdir $(basename $(TESTS)))
REGRESS_OPTS = --inputdir=test

ifeq ($(HAVE_PGXS),1)
include $(PGXS)
else
$(warning PGXS makefile not found at $(PGXS); build/install targets are unavailable in this environment.)
endif

.PHONY: test test-core test-integration test-performance test-all test-one test-one-verbose

Expand Down
Loading