spark-server/Makefile
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 19:52:11 +08:00

40 lines
567 B
Makefile

GO ?= go
MODULE := spark-server
BIN := bin/spark-server
LINT ?= golangci-lint
CONFIG ?= configs/config.yaml
.PHONY: all build test lint fmt vet tidy migrate start run deploy
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
migrate:
$(GO) run ./cmd/migrate -config $(CONFIG)
start:
$(GO) run ./cmd/server -config $(CONFIG)
run: build
./$(BIN) -config $(CONFIG)
deploy:
bash deploy/docker/deploy.sh