X-Git-Url: https://git.m6w6.name/?p=m6w6%2Ftravis-pecl;a=blobdiff_plain;f=Makefile;h=e166eb8f69a5fb84204b30efdd3890ccf89e3573;hp=927a5cdbf7ad39944a25ac2ea473d578ef5a529b;hb=8f5ffe6ca8ea6c15a2e47da5db75ca0d11acdd97;hpb=a2206d5f2eaf963d37ff568dd17cd6435f00f809 diff --git a/Makefile b/Makefile index 927a5cd..e166eb8 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export PHP ?= 5.6 JOBS ?= 2 -PHP_MIRROR ?= http://us1.php.net/distributions/ +PHP_MIRROR ?= http://us2.php.net/distributions/ TMPDIR ?= /tmp tmpnam := $(TMPDIR)/php-$(PHP)-$(shell env |grep -E '^with_|^enable_' | tr -c '[a-zA-Z_]' -) @@ -42,9 +42,15 @@ PECL_DIR := $(if $(filter ext ext%, $(MAKECMDGOALS)), $(curdir), $(srcdir)/pecl- #PHP_VERSION_MAJOR = $(firstword $(subst ., ,$(PHP))) PHP_RELEASES = $(srcdir)/releases.tsv -PHP_VERSION ?= $(shell test -e $(PHP_RELEASES) && cat $(PHP_RELEASES) | awk -F "\t" '/^$(PHP)\t/{print $$2}') +PHP_VERSION ?= $(shell test -e $(PHP_RELEASES) && cat $(PHP_RELEASES) | awk -F "\t" '/^$(PHP)\t/{print $$2; exit}') -CPPCHECK ?= -v -j $(JOBS) --std=c89 --enable=warning,portability,style --error-exitcode=42 --suppressions-list=$(makdir)/cppcheck.suppressions -I. +CPPCHECK_STD ?= c89 +CPPCHECK_ENABLE ?= portability,style +CPPCHECK_EXITCODE ?= 42 +CPPCHECK_SUPPRESSIONS ?= $(makdir)/cppcheck.suppressions +CPPCHECK_INCLUDES ?= -I. $(shell test -f Makefile && awk -F= '/^CPPFLAGS|^INCLUDES/{print $$2}'