Skip to content

Commit

Permalink
Tweak Makefile (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Jan 22, 2020
1 parent 4be9259 commit 8131814
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# See https://tech.davis-hansson.com/p/make/
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

.DEFAULT_GOAL := help

PHPBIN=php
PHPSTAN_URL=https://github.com/phpstan/phpstan/releases/download/0.12.2/phpstan.phar

SRC_FILES=$(shell find bin/ src/ -type f)

.PHONY: help
help:
@echo "\033[33mUsage:\033[0m\n make TARGET\n\n\033[32m#\n# Commands\n#---------------------------------------------------------------------------\033[0m\n"
Expand Down Expand Up @@ -544,12 +550,12 @@ fixtures/set028-symfony/composer.lock: fixtures/set028-symfony/composer.json
fixtures/set029-easy-rdf/composer.lock: fixtures/set029-easy-rdf/composer.json
@echo fixtures/set029-easy-rdf/composer.lock is not up to date.

bin/php-scoper.phar: bin/php-scoper src vendor scoper.inc.php box.json.dist
bin/php-scoper.phar: bin/php-scoper $(SRC_FILES) vendor scoper.inc.php box.json.dist
$(BOX) compile
touch $@

COVERS_VALIDATOR=$(PHPBIN) vendor-bin/covers-validator/bin/covers-validator
clover.xml: src
clover.xml: $(SRC_FILES)
$(COVERS_VALIDATOR)
php -d zend.enable_gc=0 $(PHPUNIT) \
--coverage-html=dist/coverage \
Expand Down

0 comments on commit 8131814

Please sign in to comment.