File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -21,35 +21,49 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
21
21
endif
22
22
23
23
.PHONY : all
24
+ # # Alias for `build`
24
25
all : build
25
26
26
27
.PHONY : build
28
+ # # Build runtime Docker image
27
29
build :
28
30
./scripts/build_docker.sh --target runtime
29
31
30
32
.PHONY : build.develop
33
+ # # Build developer container image
31
34
build.develop :
32
35
./scripts/build_docker.sh --target develop
33
36
34
37
.PHONY : develop
38
+ # # Run interactive shell inside developer container
35
39
develop : build.develop
36
40
./scripts/develop.sh
37
41
38
42
.PHONY : run
43
+ # # Run make target inside developer container (e.g. `make run fmt`)
39
44
run : build.develop
40
45
./scripts/develop.sh make $(RUN_ARGS )
41
46
42
47
.PHONY : test
48
+ # # Run tests
43
49
test :
44
50
./scripts/run_tests.sh
45
51
46
52
.PHONY : fmt
53
+ # # Auto-format source code and report code-style violations (lint)
47
54
fmt :
48
55
./scripts/fmt.sh
49
56
50
57
.PHONY : proto.compile
58
+ # # Compile protos
51
59
proto.compile :
52
60
./scripts/compile_protos.sh
53
61
62
+ .DEFAULT_GOAL := help
63
+ .PHONY : help
64
+ # # Print Makefile documentation
65
+ help :
66
+ @perl -0 -nle ' printf("\033[36m %-15s\033[0m %s\n", "$$2", "$$1") while m/^##\s*([^\r\n]+)\n^([\w.-]+):[^=]/gm' $(MAKEFILE_LIST ) | sort
67
+
54
68
# Override targets if they are included in RUN_ARGs so it doesn't run them twice
55
69
$(eval $(RUN_ARGS ) :;@:)
You can’t perform that action at this time.
0 commit comments