Skip to content

Commit

Permalink
Enhancement: Declare phony targets at start of Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and pimjansen committed Aug 25, 2019
1 parent f441e9a commit d6b6894
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.PHONY: fix sniff test

vendor/autoload.php:
composer install --no-interaction --prefer-dist

.PHONY: fix
fix: vendor/autoload.php
vendor/bin/phpcbf --standard=PSR2 src

.PHONY: sniff
sniff: vendor/autoload.php
vendor/bin/phpcs --standard=PSR2 src -n

.PHONY: test
test: vendor/autoload.php
vendor/bin/phpunit --verbose

0 comments on commit d6b6894

Please sign in to comment.