19 lines
293 B
Makefile
19 lines
293 B
Makefile
|
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
|