18 lines
251 B
Makefile
18 lines
251 B
Makefile
|
APP_NAME := tunnelagent
|
||
|
BIN_DIR := ../dist/tunnelagent
|
||
|
|
||
|
all: $(BIN_DIR) $(BIN_DIR)/$(APP_NAME)
|
||
|
|
||
|
$(BIN_DIR):
|
||
|
mkdir -p $(BIN_DIR)
|
||
|
|
||
|
$(BIN_DIR)/$(APP_NAME): main.go
|
||
|
go build -o $@ $<
|
||
|
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(BIN_DIR)
|
||
|
test:
|
||
|
go test -v ./...
|
||
|
|
||
|
.PHONY: clean all
|