EXTENSION = pgmnemo EXTVERSION = 0.2.1 DATA = $(wildcard extension/*--*.sql) DOCS = $(wildcard doc/*.md) TESTS = $(wildcard test/sql/*.sql) REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS)) REGRESS_OPTS = --inputdir=test --load-extension=$(EXTENSION) PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) # Convenience targets .PHONY: help format lint help: @echo "make — build extension" @echo "make install — install extension to $$($(PG_CONFIG) --sharedir)/extension/" @echo "make installcheck — run regression tests against running PG" @echo "make clean — remove build artifacts" @echo "make uninstall — remove installed extension files"