Skip to content

Commit

Permalink
add phony back (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: TimHuynh <[email protected]>
  • Loading branch information
timhuynh94 and TimHuynh authored Aug 20, 2024
1 parent fe7f181 commit 43a9da0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -47,6 +50,7 @@ tidy:
# Go source code for potential issues.
#
# Usage: `make vet`
.PHONY: vet
vet:
@echo
@echo "### Vetting Go code"
Expand All @@ -56,6 +60,7 @@ vet:
# Go source code to meet the language standards.
#
# Usage: `make fmt`
.PHONY: fmt
fmt:
@echo
@echo "### Formatting Go Code"
Expand All @@ -65,6 +70,7 @@ fmt:
# Go source code using old APIs.
#
# Usage: `make fix`
.PHONY: fix
fix:
@echo
@echo "### Fixing Go Code"
Expand All @@ -74,6 +80,7 @@ fix:
# the tests for the Go source code.
#
# Usage: `make test`
.PHONY: test
test:
@echo
@echo "### Testing Go Code"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -220,13 +238,15 @@ docker-build:
# for integration testing the plugins work with other systems.
#
# Usage: `make docker-test`
.PHONY: docker-test
docker-test:
@test/integration-tests.sh

# The `docker-run-scp` target is intended to execute
# 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"
Expand All @@ -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"
Expand Down

0 comments on commit 43a9da0

Please sign in to comment.