diff --git a/Makefile b/Makefile index ebcaff36..007ee4b0 100644 --- a/Makefile +++ b/Makefile @@ -71,11 +71,17 @@ fmt: init: go get ./... -targets: $(TARGETS) - test: go test -v ./... +lint: + go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run --fix + +release-build: + go run -modfile=tools/go.mod github.com/goreleaser/goreleaser build --clean --skip-validate + +targets: $(TARGETS) + $(TARGETS): GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \ -o "dist/$@/$(NAME)_v$(VERSION)-custom" \