From beffef02d79467e763306ac94959a8989bb5fee8 Mon Sep 17 00:00:00 2001 From: Neil Vallecer Date: Fri, 26 Jun 2026 20:36:36 +0800 Subject: [PATCH] chore: add run target to build and launch zot --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)