This commit is contained in:
程广 2024-11-14 11:16:34 +08:00
parent 45427d2020
commit bf00c0c14c
4 changed files with 21 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist/
vendor/

19
tunnelserver/Makefile Normal file
View File

@ -0,0 +1,19 @@
APP_NAME := tunnelserver
BIN_DIR := ../dist/tunnelserver
all: $(BIN_DIR) $(BIN_DIR)/$(APP_NAME) copy
$(BIN_DIR):
mkdir -p $(BIN_DIR)
$(BIN_DIR)/$(APP_NAME): main.go
go build -o $@ $<
copy:
cp -r ./conf.json $(BIN_DIR)
clean:
rm -f $(BIN_DIR)
test:
go test -v ./...
.PHONY: clean test