Sha256: a5c46bfad77b2a621d49180133ceae3eddf82cbac5e17b6ace678fb70776816f

Contents?: true

Size: 916 Bytes

Versions: 5

Compression:

Stored size: 916 Bytes

Contents

EXTENSION    = <%= extension_name %>
EXTVERSION   = $(shell grep default_version $(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")

DATA         = $(filter-out $(wildcard sql/*--*.sql),$(wildcard sql/*.sql))
DOCS         = $(wildcard doc/*.md)
TESTS        = $(wildcard test/sql/*.sql)
REGRESS      = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --inputdir=test --load-language=plpgsql
MODULES      = $(patsubst %.c,%,$(wildcard src/*.c))
PG_CONFIG    = pg_config
PG91         = $(shell $(PG_CONFIG) --version | grep -qE " 8\.| 9\.0" && echo no || echo yes)

ifeq ($(PG91),yes)
all: sql/$(EXTENSION)--$(EXTVERSION).sql

sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
	cp $< $@

DATA = $(wildcard sql/*--*.sql) sql/$(EXTENSION)--$(EXTVERSION).sql
EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql
endif

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

Version data entries

5 entries across 3 versions & 1 rubygems

Version Path
pgxn_utils-0.1.4 lib/pgxn_utils/templates/c/Makefile.tt
pgxn_utils-0.1.4 lib/pgxn_utils/templates/fdw/Makefile.tt
pgxn_utils-0.1.4 lib/pgxn_utils/templates/root/Makefile.tt
pgxn_utils-0.1.3 lib/pgxn_utils/templates/root/Makefile.tt
pgxn_utils-0.1.2 lib/pgxn_utils/templates/root/Makefile.tt