-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 816 Bytes
/
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
37
38
39
40
41
42
#
# Catch-all rules
#
.PHONY: all
all: $(composer)
# Installs and updates the composer dependencies.
.PHONY: composer
composer:
composer install
composer update
##------------
## Tests
##------------
.PHONY: test-php-style
test-php-style: ## Run phpcs and check code-style
test-php-style: vendor/bin/phpcs
vendor/bin/phpcs --ignore=vendor/* .
.PHONY: test-php-style-fix
test-php-style-fix: ## Run phpcbf and fix code-style
test-php-style-fix: vendor/bin/phpcbf
vendor/bin/phpcbf --ignore=vendor/* .
#
# Dependency management
#--------------------------------------
composer.lock: composer.json
@echo composer.lock is not up to date.
vendor: composer.lock
composer install --no-dev
vendor/bin/phpcs: composer.lock
composer install
vendor/bin/phpcbf: composer.lock
composer install