.PHONY: dev build-all run-auth run-economy run-blueprint run-match run-social run-relay tidy lint test

# 启动开发环境基础设施
dev:
	docker compose -f docker-compose.dev.yml up -d

dev-down:
	docker compose -f docker-compose.dev.yml down

# 后端：构建所有服务
build-all:
	cd server && go build ./cmd/...

# 后端：运行单个服务
run-auth:
	cd server && go run ./cmd/auth-service

run-economy:
	cd server && go run ./cmd/economy-service

run-blueprint:
	cd server && go run ./cmd/blueprint-service

run-match:
	cd server && go run ./cmd/match-service

run-social:
	cd server && go run ./cmd/social-service

run-relay:
	cd server && go run ./cmd/relay-server

# 后端：工具
tidy:
	cd server && go mod tidy

lint:
	cd server && go vet ./...

test:
	cd server && go test ./...
