gotunnelserver/tunnelserver/Makefile

19 lines
293 B
Makefile
Raw Normal View History

2024-11-14 11:16:34 +08:00
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