-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (35 loc) · 812 Bytes
/
Makefile
File metadata and controls
57 lines (35 loc) · 812 Bytes
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
45
46
47
48
49
50
51
52
53
54
55
56
57
# Makefile modules:
include mak/flags.mak
include mak/cmd.mak
include mak/path.mak
include mak/message.mak
include mak/utils.mak
# Directories
DIR_TOOL := $(DIR_ROOT)tools/
DIR_TOOL_BIN := $(DIR_TOOL)bin/
# Targets
rebuild:
update:
shell:
init:
$(info $(MSG_INIT))
$(DIR_TOOL_BIN)initialize-environment.sh
check:
$(info $(MSG_CHECK))
$(DIR_TOOL_BIN)format.sh --diff --dry-run
format:
$(info $(MSG_FORMAT))
$(DIR_TOOL_BIN)format.sh
static:
$(info $(MSG_STATIC))
$(CD) $(DIR_TOOL) && $(DIR_BIN)phpstan analyse --ansi
test:
$(info $(MSG_TEST))
$(MK) $(DIR_TEST)
$(CD) $(DIR_TOOL) && XDEBUG_MODE=coverage $(DIR_BIN)phpunit --colors=always
all: format static test
clean:
$(info $(MSG_CLEAN))
$(DIR_TOOL_BIN)delete-out.sh
# Special
.PHONY: init check format static test all clean