chore: add run target to build and launch zot

This commit is contained in:
Neil Vallecer 2026-06-26 20:36:36 +08:00
parent b325477870
commit beffef02d7

View file

@ -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)