spark-server/Makefile
2026-09-16 19:08:06 +08:00

30 lines
381 B
Makefile

GO ?= go
MODULE := spark-server
BIN := bin/spark-server
LINT ?= golangci-lint
.PHONY: all build test lint fmt vet tidy run
all: lint test build
build:
$(GO) build -o $(BIN) ./cmd/server
test:
$(GO) test ./...
vet:
$(GO) vet ./...
fmt:
$(GO) fmt ./...
lint:
$(LINT) run ./...
tidy:
$(GO) mod tidy
run: build
./$(BIN) -config configs/config.yaml