mirror of
https://github.com/fatedier/frp.git
synced 2024-11-24 02:59:19 +08:00
23 lines
371 B
Makefile
23 lines
371 B
Makefile
export PATH := $(GOPATH)/bin:$(PATH)
|
|
export OLDGOPATH := $(GOPATH)
|
|
export GOPATH := $(shell pwd):$(GOPATH)
|
|
|
|
all: build
|
|
|
|
build: godep fmt frps frpc
|
|
|
|
godep:
|
|
GOPATH=$(OLDGOPATH) go get github.com/tools/godep
|
|
|
|
fmt:
|
|
godep go fmt ./...
|
|
|
|
frps:
|
|
godep go build -o bin/frps ./src/frp/cmd/frps
|
|
|
|
frpc:
|
|
godep go build -o bin/frpc ./src/frp/cmd/frpc
|
|
|
|
test:
|
|
godep go test -v ./...
|