From d95d657819358f2cd8cd430dfb9ef3f8da79a514 Mon Sep 17 00:00:00 2001 From: Claudio Kressibucher Date: Wed, 4 May 2016 11:00:12 +0200 Subject: [PATCH] use variables for binaries in Makefile --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6e9b69eed..de1a7e116 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ +PHP_BIN := php +COMPOSER_BIN := composer +BOX_BIN := box + .PHONY: build composer-install-dev tests tests-coverage build: tests - composer install --no-dev --optimize-autoloader - box build + $(COMPOSER_BIN) install --no-dev --optimize-autoloader + $(BOX_BIN) build chmod +x deptrac.phar composer-install-dev: - composer install --dev --optimize-autoloader + $(COMPOSER_BIN) install --dev --optimize-autoloader tests: composer-install-dev - ./vendor/phpunit/phpunit/phpunit -c . + $(PHP_BIN) ./vendor/phpunit/phpunit/phpunit -c . tests-coverage: composer-install-dev - ./vendor/phpunit/phpunit/phpunit -c . --coverage-html coverage + $(PHP_BIN) ./vendor/phpunit/phpunit/phpunit -c . --coverage-html coverage