diff --git a/Makefile b/Makefile index 000d706..02c3518 100644 --- a/Makefile +++ b/Makefile @@ -26,18 +26,21 @@ LD_FLAGS = \ # and prepare the local changes for submission. # # Usage: `make clean` +.PHONY: clean clean: tidy vet fmt fix # The `run` target is intended to build and # execute the Docker image for the plugin. # # Usage: `make run` +.PHONY: run run: build docker-build docker-run # The `tidy` target is intended to clean up # the Go module files (go.mod & go.sum). # # Usage: `make tidy` +.PHONY: tidy tidy: @echo @echo "### Tidying Go module" @@ -47,6 +50,7 @@ tidy: # Go source code for potential issues. # # Usage: `make vet` +.PHONY: vet vet: @echo @echo "### Vetting Go code" @@ -56,6 +60,7 @@ vet: # Go source code to meet the language standards. # # Usage: `make fmt` +.PHONY: fmt fmt: @echo @echo "### Formatting Go Code" @@ -65,6 +70,7 @@ fmt: # Go source code using old APIs. # # Usage: `make fix` +.PHONY: fix fix: @echo @echo "### Fixing Go Code" @@ -74,6 +80,7 @@ fix: # the tests for the Go source code. # # Usage: `make test` +.PHONY: test test: @echo @echo "### Testing Go Code" @@ -84,6 +91,7 @@ test: # open the test coverage report. # # Usage: `make test-cover` +.PHONY: test-cover test-cover: @echo @echo "### Creating test coverage report" @@ -96,6 +104,7 @@ test-cover: # the Go source code into a binary. # # Usage: `make build` +.PHONY: build build: @echo @echo "### Building release/vela-scp binary" @@ -116,6 +125,7 @@ build: # the Go source code into a statically linked binary. # # Usage: `make build-static` +.PHONY: build-static build-static: @echo @echo "### Building static release/vela-scp binary" @@ -137,6 +147,7 @@ build-static: # when used within a CI environment. # # Usage: `make build-static-ci` +.PHONY: build-static-ci build-static-ci: @echo @echo "### Building CI static release/vela-scp binary" @@ -155,6 +166,7 @@ build-static-ci: # dependencies from the Go module that need updates. # # Usage: `make check` +.PHONY: check check: check-install @echo @echo "### Checking dependencies for updates" @@ -164,6 +176,7 @@ check: check-install # dependencies from the Go module that need updates. # # Usage: `make check-direct` +.PHONY: check-direct check-direct: check-install @echo @echo "### Checking direct dependencies for updates" @@ -173,6 +186,7 @@ check-direct: check-install # all dependencies from the Go module. # # Usage: `make check-full` +.PHONY: check-full check-full: check-install @echo @echo "### Checking all dependencies for updates" @@ -182,6 +196,7 @@ check-full: check-install # the tool used to check dependencies from the Go module. # # Usage: `make check-install` +.PHONY: check-install check-install: @echo @echo "### Installing psampaz/go-mod-outdated" @@ -191,6 +206,7 @@ check-install: # non-test dependencies for the Go module. # # Usage: `make bump-deps` +.PHONY: bump-deps bump-deps: check @echo @echo "### Upgrading dependencies" @@ -200,6 +216,7 @@ bump-deps: check # all dependencies for the Go module. # # Usage: `make bump-deps-full` +.PHONY: bump-deps-full bump-deps-full: check @echo @echo "### Upgrading all dependencies" @@ -209,6 +226,7 @@ bump-deps-full: check # the Docker image for the plugin. # # Usage: `make docker-build` +.PHONY: docker-build docker-build: @echo @echo "### Building vela-scp:local image" @@ -220,6 +238,7 @@ docker-build: # for integration testing the plugins work with other systems. # # Usage: `make docker-test` +.PHONY: docker-test docker-test: @test/integration-tests.sh @@ -227,6 +246,7 @@ docker-test: # the Docker image for the scp plugin. # # Usage: `make docker-run-scp` +.PHONY: docker-run-scp docker-run-scp: @echo @echo "### Executing vela-scp:local image" @@ -247,6 +267,7 @@ docker-run-scp: # the Docker image for the ssh plugin. # # Usage: `make docker-run-ssh` +.PHONY: docker-run-ssh docker-run-ssh: @echo @echo "### Executing vela-ssh:local image"