-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (36 loc) · 798 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
43
44
.PHONY: all clean compile help lint lint-fix
PHP = docker-compose run --rm php
all: lint
vendor:
$(PHP) composer --ignore-platform-req=ext-memcached install
clean:
$(PHP) rm -rf vendor composer.lock
lint: vendor
$(PHP) composer lint
lint-fix: vendor
$(PHP) composer lint-fix
compile: vendor
$(PHP) composer compile
help:
@echo "Manage project"
@echo ""
@echo "Usage:"
@echo " $$ make [command]"
@echo ""
@echo "Commands:"
@echo ""
@echo " $$ make lint"
@echo " Lint code style"
@echo ""
@echo " $$ make lint-fix"
@echo " Lint and fix code style"
@echo ""
@echo " $$ make compile"
@echo " Compiles the plugin"
@echo ""
@echo " $$ make clean"
@echo " Delete installed dependencies"
@echo ""
@echo " $$ make vendor"
@echo " Install dependencies"
@echo ""