Skip to content

Commit

Permalink
build(Makefile): remove unused COMMIT var, fix help rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Dec 6, 2024
1 parent 090b486 commit 9342bd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
GOCMD := go
GOFMT := ${GOCMD} fmt
GOMOD := ${GOCMD} mod
COMMIT := $(shell git rev-parse HEAD)
RELEASE_CONTAINER_NAME := mango
GOLANGCILINT_CACHE := ${CURDIR}/.golangci-lint/build/cache

# autogenerate help messages for comment lines with 2 `#`
.PHONY: help
help: ## print this help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-z0-9A-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m\t%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-z0-9A-Z_-]+:.*?##/ { printf " \033[36m%-30s\033[0m%s\n", $$1, $$2 }' $(MAKEFILE_LIST)

.PHONY: tidy
tidy: ## tidy modules
Expand Down

0 comments on commit 9342bd9

Please sign in to comment.