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 -rf $(BIN_DIR) test: go test -v ./... .PHONY: clean all