mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
12 lines
584 B
Makefile
12 lines
584 B
Makefile
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
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
|
|
PIP = pip
|
|
NOSETESTS = nosetests
|
|
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))
|