Merge pull request #48 from svc-design/codex/add-makefile-for-server

Add Makefile for server module
This commit is contained in:
shenlan 2025-08-02 21:26:56 +08:00 committed by GitHub
commit c19e493385

27
server/Makefile Normal file
View File

@ -0,0 +1,27 @@
APP_NAME := xcontrol-server
MAIN_FILE := ../cmd/api/main.go
MODULE := xcontrol
.PHONY: all build run clean init help
all: build
init:
go mod tidy
build:
go build -o $(APP_NAME) $(MAIN_FILE)
run:
go run $(MAIN_FILE)
clean:
rm -f $(APP_NAME)
help:
@echo " XControl Server Makefile"
@echo ""
@echo "make build 编译 server 可执行文件"
@echo "make run 运行 server"
@echo "make init 初始化依赖"
@echo "make clean 清理构建产物"