diff --git a/Makefile b/Makefile index 7067f27..d41c2e2 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION ?= 0.0.0 LDFLAGS := -s -w -X main.version=$(VERSION) -.PHONY: build install test lint fmt clean release +.PHONY: build install test lint fmt clean release run build: go build -trimpath -ldflags "$(LDFLAGS)" -o bin/zot ./cmd/zot @@ -14,6 +14,9 @@ install: test: go test -race ./... +run: build + ./bin/zot + lint: go vet ./... @test -z "$$(gofmt -l . | tee /dev/stderr)" || (echo "gofmt issues"; exit 1)