aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-03-04 17:42:41 +0100
committern-peugnet <n.peugnet@free.fr>2021-03-04 17:42:41 +0100
commit0e22e5ba1be5b561907b7739cab5a59812f08d8f (patch)
treeb3ed4c4b1dffbe397c5c47a3dd080a47d945b09a /Makefile
parentf30ec46d410f4c0bf986929e132f8a9efd4d0530 (diff)
downloadwcms-0e22e5ba1be5b561907b7739cab5a59812f08d8f.tar.gz
wcms-0e22e5ba1be5b561907b7739cab5a59812f08d8f.zip
fix: make checks
- make each command depend on vendor - fix lint failing with recent bash versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 13afc14..d01dc51 100644
--- a/Makefile
+++ b/Makefile
@@ -171,26 +171,26 @@ buildclean:
# Run all checks.
.PHONY: check
-check: vendor lint analyse test
+check: lint analyse test
# Lint php code with phpcs.
.PHONY: lint
-lint: $(phpcs_dir)
- phpcs --report-full --report-summary --cache=$(phpcs_dir)/result.cache || printf "run 'make fix'\n\n"; exit 1
+lint: $(phpcs_dir) vendor
+ phpcs --report-full --report-summary --cache=$(phpcs_dir)/result.cache || { printf "run 'make fix'\n\n"; exit 1; }
# fix php code with phpcbf.
.PHONY: fix
-fix: $(phpcs_dir)
+fix: $(phpcs_dir) vendor
phpcbf || exit 0
# Analyse php code with phpstan.
.PHONY: analyse
-analyse:
+analyse: vendor
phpstan analyse
# Test php code with phpunit.
.PHONY: test
-test: $(phpunit_dir)
+test: $(phpunit_dir) vendor
phpunit
# Create dirs if the do not exist