Skip to content

Commit 8131814

Browse files
authored
Tweak Makefile (#375)
1 parent 4be9259 commit 8131814

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# See https://tech.davis-hansson.com/p/make/
2+
MAKEFLAGS += --warn-undefined-variables
3+
MAKEFLAGS += --no-builtin-rules
4+
15
.DEFAULT_GOAL := help
26

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

10+
SRC_FILES=$(shell find bin/ src/ -type f)
11+
612
.PHONY: help
713
help:
814
@echo "\033[33mUsage:\033[0m\n make TARGET\n\n\033[32m#\n# Commands\n#---------------------------------------------------------------------------\033[0m\n"
@@ -544,12 +550,12 @@ fixtures/set028-symfony/composer.lock: fixtures/set028-symfony/composer.json
544550
fixtures/set029-easy-rdf/composer.lock: fixtures/set029-easy-rdf/composer.json
545551
@echo fixtures/set029-easy-rdf/composer.lock is not up to date.
546552

547-
bin/php-scoper.phar: bin/php-scoper src vendor scoper.inc.php box.json.dist
553+
bin/php-scoper.phar: bin/php-scoper $(SRC_FILES) vendor scoper.inc.php box.json.dist
548554
$(BOX) compile
549555
touch $@
550556

551557
COVERS_VALIDATOR=$(PHPBIN) vendor-bin/covers-validator/bin/covers-validator
552-
clover.xml: src
558+
clover.xml: $(SRC_FILES)
553559
$(COVERS_VALIDATOR)
554560
php -d zend.enable_gc=0 $(PHPUNIT) \
555561
--coverage-html=dist/coverage \

0 commit comments

Comments
 (0)