-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
24 lines (23 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.DEFAULT_GOAL := help
.PHONY: help
help: ## Dislay this help
@IFS=$$'\n'; for line in `grep -E '^[a-zA-Z_#-]+:?.*?## .*$$' $(MAKEFILE_LIST)`; do if [ "$${line:0:2}" = "##" ]; then \
echo $$line | awk 'BEGIN {FS = "## "}; {printf "\n\033[33m%s\033[0m\n", $$2}'; else \
echo $$line | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'; fi; \
done; unset IFS;
modman: ## Regenerate modman
vendor/bin/generate-modman --include-others --include-others-files
phpcsfixer_dry_run: ## Return an error code if PHP errors codes
./vendor/bin/php-cs-fixer fix --verbose --show-progress dots --dry-run
phpcsfixer_fix: ## Fix PHP Coding styles (need composer install (dev) first)
./vendor/bin/php-cs-fixer fix --verbose --show-progress dots
docker_phpcsfixer_dry_run: ## Return an error code if PHP errors codes WITH DOCKER
docker run --rm \
--user $(id -u):$(id -g) \
--volume ${PWD}:/project \
herloct/php-cs-fixer fix --verbose --show-progress dots --dry-run
docker_phpcsfixer_fix: ## Fix PHP Coding styles (need composer install (dev) first) WITH DOCKER
docker run --rm \
--user $(id -u):$(id -g) \
--volume ${PWD}:/project \
herloct/php-cs-fixer fix --verbose --show-progress dots