@@ -19,46 +19,31 @@ DOCKER_RUN_LIBCOMPOSE := docker run --rm -it --privileged $(LIBCOMPOSE_ENVS) $(L
19
19
20
20
default : binary
21
21
22
- all : build
22
+ all : build # # validate all checks, build linux binary, run all tests\ncross build non-linux binaries
23
23
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh
24
24
25
- binary : build
25
+ binary : build # # build the linux binary
26
26
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh binary
27
27
28
- cross-binary : build
28
+ cross-binary : build # # cross build the non linux binaries (windows, darwin)
29
29
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh cross-binary
30
30
31
- test : build
31
+ test : build # # run the unit, integration and acceptance tests
32
32
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh binary test-unit test-integration test-acceptance
33
33
34
- test-unit : build
34
+ test-unit : build # # run the unit tests
35
35
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh test-unit
36
36
37
- test-integration : build
37
+ test-integration : build # # run the integration tests
38
38
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh binary test-integration
39
39
40
- test-acceptance : build
40
+ test-acceptance : build # # run the acceptance tests
41
41
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh binary test-acceptance
42
42
43
- validate-dco : build
44
- $(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-dco
45
-
46
- validate-gofmt : build
47
- $(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-gofmt
48
-
49
- validate-lint : build
50
- $(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-lint
51
-
52
- validate-vet : build
53
- $(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-vet
54
-
55
- validate-git-marks : build
56
- $(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-git-marks
57
-
58
- validate : build
43
+ validate : build # # validate DCO, git conflicts marks, gofmt, golint and go vet
59
44
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh validate-dco validate-git-marks validate-gofmt validate-lint validate-vet
60
45
61
- shell : build
46
+ shell : build # # start a shell inside the build env
62
47
$(DOCKER_RUN_LIBCOMPOSE ) bash
63
48
64
49
# Build the docker image, should be prior almost any other goals
@@ -71,3 +56,5 @@ bundles:
71
56
clean :
72
57
$(DOCKER_RUN_LIBCOMPOSE ) ./script/make.sh clean
73
58
59
+ help : # # this help
60
+ @awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST )
0 commit comments