2016-03-16 22:40:40 +08:00
|
|
|
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
2016-03-29 20:53:51 +08:00
|
|
|
EXTENSION = crankshaft
|
|
|
|
PACKAGE = crankshaft
|
|
|
|
EXTVERSION = $(shell grep default_version $(SELF_DIR)/src/pg/$(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
|
|
|
|
RELEASE_VERSION ?= $(EXTVERSION)
|
|
|
|
SED = sed
|
2017-10-31 16:58:43 +08:00
|
|
|
PIP = pip
|
|
|
|
NOSETESTS = nosetests
|
2017-10-31 21:48:48 +08:00
|
|
|
AWK = awk
|
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PG_PARALLEL := $(shell $(PG_CONFIG) --version | ($(AWK) '{$$2*=1000; if ($$2 >= 9600) print 1; else print 0;}' 2> /dev/null || echo 0))
|