You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
795 B

export PATH := $(GOPATH)/bin:$(PATH)
export GO15VENDOREXPERIMENT := 1
all: fmt build
8 years ago
build: frps frpc
# compile assets into binary file
file:
go get -d github.com/rakyll/statik
@go install github.com/rakyll/statik
@rm -rf ./assets/statik
go generate ./assets/...
fmt:
8 years ago
go fmt ./...
frps:
go build -o bin/frps ./cmd/frps
@cp -rf ./assets/static ./bin
frpc:
go build -o bin/frpc ./cmd/frpc
test: gotest
gotest:
8 years ago
go test -v ./assets/...
go test -v ./client/...
go test -v ./cmd/...
go test -v ./models/...
go test -v ./server/...
go test -v ./utils/...
alltest: gotest
8 years ago
cd ./tests && ./run_test.sh && cd -
8 years ago
go test -v ./tests/...
8 years ago
cd ./tests && ./clean_test.sh && cd -
clean:
rm -f ./bin/frpc
rm -f ./bin/frps
9 years ago
cd ./test && ./clean_test.sh && cd -
save:
8 years ago
godep save ./...