|
1 | 1 | .PHONY: build |
2 | 2 | build: cs static test ## Runs cs, static, and test targets |
3 | 3 |
|
| 4 | +# https://www.gnu.org/software/make/manual/html_node/Force-Targets.html |
| 5 | +always: |
| 6 | + |
4 | 7 | .PHONY: help |
5 | 8 | help: |
6 | 9 | @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
7 | 10 |
|
8 | 11 | .PHONY: cs |
9 | | -cs: vendor/autoload.php ## Fixes coding standard issues with php-cs-fixer |
| 12 | +cs: vendor ## Fixes coding standard issues with php-cs-fixer |
10 | 13 | vendor/bin/php-cs-fixer fix --diff --diff-format=udiff --verbose |
11 | 14 |
|
12 | 15 | .PHONY: coverage |
13 | | -coverage: vendor/autoload.php ## Collects coverage with phpunit |
| 16 | +coverage: vendor ## Collects coverage with phpunit |
14 | 17 | vendor/bin/simple-phpunit --coverage-text --coverage-clover=.build/logs/clover.xml |
15 | 18 |
|
16 | 19 | .PHONY: test |
17 | | -test: vendor/autoload.php ## Runs tests with phpunit |
| 20 | +test: vendor ## Runs tests with phpunit |
18 | 21 | vendor/bin/simple-phpunit |
19 | 22 |
|
20 | 23 | .PHONY: static |
21 | | -static: vendor/autoload.php ## Runs static analyzers |
| 24 | +static: vendor ## Runs static analyzers |
22 | 25 | vendor/bin/phpstan analyze |
23 | 26 | vendor/bin/psalm |
24 | 27 |
|
25 | 28 | .PHONY: baseline |
26 | | -baseline: vendor/autoload.php ## Generate baseline files |
| 29 | +baseline: vendor ## Generate baseline files |
27 | 30 | vendor/bin/phpstan analyze --generate-baseline |
28 | 31 | vendor/bin/psalm --update-baseline |
29 | 32 |
|
30 | 33 | .PHONY: clean |
31 | 34 | clean: ## Cleans up build and vendor files |
32 | 35 | rm -rf vendor composer.lock .build |
33 | 36 |
|
34 | | -vendor/autoload.php: |
| 37 | +vendor: always |
35 | 38 | composer update --no-interaction |
36 | 39 | composer bin all install --no-interaction |
37 | 40 | vendor/bin/simple-phpunit install |
0 commit comments