Skip to content

Commit 2b5a3c9

Browse files
authored
Fix: Force execution of vendor target (#229)
1 parent f7ec413 commit 2b5a3c9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
.PHONY: build
22
build: cs static test ## Runs cs, static, and test targets
33

4+
# https://www.gnu.org/software/make/manual/html_node/Force-Targets.html
5+
always:
6+
47
.PHONY: help
58
help:
69
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
710

811
.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
1013
vendor/bin/php-cs-fixer fix --diff --diff-format=udiff --verbose
1114

1215
.PHONY: coverage
13-
coverage: vendor/autoload.php ## Collects coverage with phpunit
16+
coverage: vendor ## Collects coverage with phpunit
1417
vendor/bin/simple-phpunit --coverage-text --coverage-clover=.build/logs/clover.xml
1518

1619
.PHONY: test
17-
test: vendor/autoload.php ## Runs tests with phpunit
20+
test: vendor ## Runs tests with phpunit
1821
vendor/bin/simple-phpunit
1922

2023
.PHONY: static
21-
static: vendor/autoload.php ## Runs static analyzers
24+
static: vendor ## Runs static analyzers
2225
vendor/bin/phpstan analyze
2326
vendor/bin/psalm
2427

2528
.PHONY: baseline
26-
baseline: vendor/autoload.php ## Generate baseline files
29+
baseline: vendor ## Generate baseline files
2730
vendor/bin/phpstan analyze --generate-baseline
2831
vendor/bin/psalm --update-baseline
2932

3033
.PHONY: clean
3134
clean: ## Cleans up build and vendor files
3235
rm -rf vendor composer.lock .build
3336

34-
vendor/autoload.php:
37+
vendor: always
3538
composer update --no-interaction
3639
composer bin all install --no-interaction
3740
vendor/bin/simple-phpunit install

0 commit comments

Comments
 (0)