@@ -59,7 +59,7 @@ lint: ## run go lint
5959 @test -z " $$ (golint ./... | grep -Fv 'vendor/' | grep -Fv 'extra' | grep -v " .pb.go:" | tee /dev/stderr)"
6060
6161.PHONY : vet
62- vet : # run go vet
62+ vet : # # run go vet
6363 @echo $@
6464 @test -z " $$ (./hack/build vet)"
6565
@@ -83,29 +83,33 @@ modules:
8383# install them to /usr/local/bin/
8484# remove binaries
8585.PHONY : install
86- install : build
86+ install : build # # build and install binary into /usr/local/bin
8787 @echo $@
8888 @echo " installing $( BINARY_NAME) and $( CLI_BINARY_NAME) to $( DESTDIR) /bin"
8989 @mkdir -p $(DESTDIR ) /bin
9090 @install $(BINARY_NAME ) $(DESTDIR ) /bin
9191 @install $(CLI_BINARY_NAME ) $(DESTDIR ) /bin
9292
9393.PHONY : uninstall
94- uninstall :
94+ uninstall : # # uninstall pouchd and pouch binary
9595 @echo $@
9696 @rm -f $(addprefix $(DESTDIR ) /bin/,$(notdir $(BINARY_NAME ) ) )
9797 @rm -f $(addprefix $(DESTDIR ) /bin/,$(notdir $(CLI_BINARY_NAME ) ) )
9898
9999# For integration-test and test, PATH is not set under sudo, then we set up path mannually.
100100# Ref https://unix.stackexchange.com/questions/83191/how-to-make-sudo-preserve-path
101101.PHONY : integration-test
102- integration-test :
102+ integration-test : # # build binary and run integration-test
103103 @bash -c " env PATH=$( PATH) hack/make.sh build integration-test"
104104
105105.PHONY : cri-test
106- cri-test :
106+ cri-test : # # build binary and run cri-test
107107 @bash -c " env PATH=$( PATH) hack/make.sh build cri-test"
108108
109109.PHONY : test
110- test :
110+ test : # # run the build integration-test cri-test
111111 @bash -c " env PATH=$( PATH) hack/make.sh build integration-test cri-test"
112+
113+ .PHONY : help
114+ help : # # this help
115+ @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