From 79de9c8e52f16a2e06324683cf4c00c91df1b6c1 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 4 Apr 2017 11:48:21 +0200 Subject: [PATCH] exit after first found version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28df309..93caffb 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ 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_STD ?= c89 CPPCHECK_ENABLE ?= portability,style -- 2.30.2