Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Enhancement: Add help as first target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 25, 2019
1 parent f66a8a0 commit 9fd83e7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
.PHONY: fix sniff test
.PHONY: fix help sniff test

fix: vendor/autoload.php
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

fix: vendor/autoload.php ## Fix code style issues with phpcbf
vendor/bin/phpcbf --standard=PSR2 src

sniff: vendor/autoload.php
sniff: vendor/autoload.php ## Detect code style issues with phpcs
vendor/bin/phpcs --standard=PSR2 src -n

test: vendor/autoload.php
test: vendor/autoload.php ## Run tests with phpunit
vendor/bin/phpunit --verbose

vendor/autoload.php:
Expand Down

0 comments on commit 9fd83e7

Please sign in to comment.