-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (23 loc) · 1.06 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
25
26
27
28
29
30
31
32
33
34
35
36
tools/php-cs-fixer/vendor/composer/installed.php: tools/php-cs-fixer/composer.lock
composer install --working-dir=./tools/php-cs-fixer
vendor/composer/installed.php: composer.lock
composer install
vendor: vendor/composer/installed.php
tools-vendor: tools/php-cs-fixer/vendor/composer/installed.php
cs_check: tools-vendor ## Check code style
./tools/php-cs-fixer/vendor/bin/php-cs-fixer check
cs: tools-vendor ## Fix code style
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -q
rectify: vendor ## Run Rector
./vendor/bin/rector --no-diffs
rector: vendor ## Run Rector (dry run)
./vendor/bin/rector --dry-run
jane: vendor openapi/silae-paie-rest-api.json ## Generate the SDK
./vendor/bin/jane-openapi generate --config-file=.jane-openapi.php
patch-spec: openapi/Silae_Paie_Rest_API_Partenaires_latest.json
php openapi/add-headers.php
build: patch-spec jane rectify cs
.PHONY: help
help: ## Display this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help