Browse Source

build: fix

fatedier 9 years ago
parent
commit
0f326449e8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -1,4 +1,5 @@
 export PATH := $(GOPATH)/bin:$(PATH)
+export OLDGOPATH := $(GOPATH)
 export GOPATH := $(shell pwd):$(GOPATH)
 
 all: build
@@ -6,7 +7,8 @@ all: build
 build: godep fmt frps frpc
 
 godep:
-	@go get github.com/tools/godep
+	@GOPATH=$(OLDGOPATH)
+	go get github.com/tools/godep
 
 fmt:
 	godep go fmt ./...