mirror of
https://github.com/ZeroDream-CN/SakuraFrp
synced 2024-11-22 15:44:42 +00:00
22 lines
398 B
Makefile
22 lines
398 B
Makefile
export PATH := $(GOPATH)/bin:$(PATH)
|
|
export NEW_GOPATH := $(shell pwd)
|
|
|
|
all: build
|
|
|
|
build: godep fmt frps frpc
|
|
|
|
godep:
|
|
@go get github.com/tools/godep
|
|
|
|
fmt:
|
|
GOPATH=$(NEW_GOPATH) godep go fmt ./...
|
|
|
|
frps:
|
|
GOPATH=$(NEW_GOPATH) godep go build -o bin/frps ./src/frp/cmd/frps
|
|
|
|
frpc:
|
|
GOPATH=$(NEW_GOPATH) godep go build -o bin/frpc ./src/frp/cmd/frpc
|
|
|
|
test:
|
|
@GOPATH=$(NEW_GOPATH) godep go test ./...
|