From e7a7ff54b9bb1fc2914b2a7cd489fc910161e498 Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Fri, 27 Mar 2026 23:14:53 +0300 Subject: [PATCH] chore: add Makefile with run/build/test targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make run — starts web UI on :8080 make run LISTEN=:9090 — custom port make run AUDIT_PATH=/tmp/bee.json — with audit data make build / make test Co-Authored-By: Claude Sonnet 4.6 --- audit/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 audit/Makefile diff --git a/audit/Makefile b/audit/Makefile new file mode 100644 index 0000000..33038eb --- /dev/null +++ b/audit/Makefile @@ -0,0 +1,18 @@ +LISTEN ?= :8080 +AUDIT_PATH ?= + +RUN_ARGS := web --listen $(LISTEN) +ifneq ($(AUDIT_PATH),) +RUN_ARGS += --audit-path $(AUDIT_PATH) +endif + +.PHONY: run build test + +run: + go run ./cmd/bee $(RUN_ARGS) + +build: + go build -o bee ./cmd/bee + +test: + go test ./...