minor improvements in Makefile

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
Kai Xia 2026-02-24 22:04:23 +11:00
parent 8774526616
commit 78e5bdad29

View file

@ -144,6 +144,10 @@ fmt:
lint: lint:
@$(GOLANGCI_LINT) run @$(GOLANGCI_LINT) run
## fix: Fix linting issues
fix:
@$(GOLANGCI_LINT) run --fix
## deps: Download dependencies ## deps: Download dependencies
deps: deps:
@$(GO) mod download @$(GO) mod download
@ -169,7 +173,7 @@ help:
@echo " make [target]" @echo " make [target]"
@echo "" @echo ""
@echo "Targets:" @echo "Targets:"
@grep -E '^## ' $(MAKEFILE_LIST) | sed 's/## / /' @grep -E '^## ' $(MAKEFILE_LIST) | sort | awk -F': ' '{printf " %-16s %s\n", substr($$1, 4), $$2}'
@echo "" @echo ""
@echo "Examples:" @echo "Examples:"
@echo " make build # Build for current platform" @echo " make build # Build for current platform"