公开完整前后端的代码

This commit is contained in:
Linus Torvalds
2026-02-26 19:22:38 +08:00
commit 193de8a34f
161 changed files with 17373 additions and 0 deletions

26
back/Makefile Normal file
View File

@@ -0,0 +1,26 @@
.PHONY:start-server dev server tool build-all start-tool
PWD= $(shell pwd)
SRC= $(PWD)/src
BUILD= $(PWD)/build
DEV_CONFIG= $(BUILD)/dev.yaml
SERVER_BINARY_NAME=wts
TOOL_BINARY_NAME=wtstool
build-all: $(SERVER_BINARY_NAME) $(TOOL_BINARY_NAME)
start-server: $(SERVER_BINARY_NAME)
$(BUILD)/$(SERVER_BINARY_NAME) -c $(DEV_CONFIG)
dev: $(SERVER_BINARY_NAME) start-server
server: $(SERVER_BINARY_NAME)
$(SERVER_BINARY_NAME):
cd $(SRC)/cmd/wts-server && go build -o $(BUILD)/$(SERVER_BINARY_NAME)
tool: $(TOOL_BINARY_NAME)
$(TOOL_BINARY_NAME):
cd $(SRC)/cmd/wtstool && go build -o $(BUILD)/$(TOOL_BINARY_NAME)
start-tool: $(TOOL_BINARY_NAME)
$(BUILD)/$(TOOL_BINARY_NAME) -c $(DEV_CONFIG)