2016-01-27 20:24:36 +07:00
|
|
|
export PATH := $(GOPATH)/bin:$(PATH)
|
2016-02-25 16:38:34 +07:00
|
|
|
export NEW_GOPATH := $(shell pwd)
|
2016-01-27 20:24:36 +07:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2016-02-03 17:46:24 +07:00
|
|
|
build: godep fmt frps frpc
|
2016-01-27 20:24:36 +07:00
|
|
|
|
|
|
|
godep:
|
|
|
|
@go get github.com/tools/godep
|
|
|
|
|
2016-02-03 17:46:24 +07:00
|
|
|
fmt:
|
2016-03-13 23:21:40 +07:00
|
|
|
GOPATH=$(NEW_GOPATH) godep go fmt ./...
|
2016-02-03 17:46:24 +07:00
|
|
|
|
2016-01-27 20:24:36 +07:00
|
|
|
frps:
|
2016-02-25 16:38:34 +07:00
|
|
|
GOPATH=$(NEW_GOPATH) godep go build -o bin/frps ./src/frp/cmd/frps
|
2016-01-27 20:24:36 +07:00
|
|
|
|
|
|
|
frpc:
|
2016-02-25 16:38:34 +07:00
|
|
|
GOPATH=$(NEW_GOPATH) godep go build -o bin/frpc ./src/frp/cmd/frpc
|
2016-02-03 17:14:16 +07:00
|
|
|
|
|
|
|
test:
|
2016-03-15 17:45:57 +07:00
|
|
|
@GOPATH=$(NEW_GOPATH) godep go test -v ./...
|