Skip to content

Commit

Permalink
build: remove godep command(can not download packages in golang.org u…
Browse files Browse the repository at this point in the history
…sed in latest godep version)
  • Loading branch information
fatedier committed Jun 7, 2016
1 parent e8c830e commit 740fb05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
22 changes: 9 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
export PATH := $(GOPATH)/bin:$(PATH)
export OLDGOPATH := $(GOPATH)
export GOPATH := $(shell pwd):$(GOPATH)
export GOPATH := $(shell pwd)/Godeps/_workspace:$(shell pwd):$(GOPATH)

all: build

build: godep fmt frps frpc build_test
build: fmt frps frpc build_test

build_test: echo_server http_server

godep:
GOPATH=$(OLDGOPATH) go get github.com/tools/godep

fmt:
go fmt ./src/...
@go fmt ./test/echo_server.go
@go fmt ./test/http_server.go
@go fmt ./test/func_test.go

frps:
godep go build -o bin/frps ./src/frp/cmd/frps
go build -o bin/frps ./src/frp/cmd/frps

frpc:
godep go build -o bin/frpc ./src/frp/cmd/frpc
go build -o bin/frpc ./src/frp/cmd/frpc

echo_server:
godep go build -o test/bin/echo_server ./test/echo_server.go
go build -o test/bin/echo_server ./test/echo_server.go

http_server:
godep go build -o test/bin/http_server ./test/http_server.go
go build -o test/bin/http_server ./test/http_server.go

test: gotest

gotest:
godep go test -v ./src/...
go test -v ./src/...

alltest:
cd ./test && ./run_test.sh && cd -
godep go test -v ./src/...
godep go test -v ./test/func_test.go
go test -v ./src/...
go test -v ./test/func_test.go
cd ./test && ./clean_test.sh && cd -

clean:
Expand Down
4 changes: 2 additions & 2 deletions Makefile.cross-compiles
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export GOPATH := $(shell pwd)/Godeps/_workspace:$(shell pwd):$(GOPATH)

all: build

build: godep app
build: gox app

godep:
gox:
GOPATH=$(OLDGOPATH) go get github.com/mitchellh/gox

app:
Expand Down

0 comments on commit 740fb05

Please sign in to comment.