Browse Source

fix makefile to get bindata dependency properly

Alan Shreve 12 years ago
parent
commit
078bbb1fdc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Makefile

+ 4 - 2
Makefile

@@ -16,11 +16,13 @@ client: deps
 	go install -tags '$(BUILDTAGS)' ngrok/main/ngrok
 	go install -tags '$(BUILDTAGS)' ngrok/main/ngrok
 
 
 client-assets:
 client-assets:
-	go install github.com/inconshreveable/go-bindata
+	go get github.com/inconshreveable/go-bindata
+	GOOS="" GOARCH="" go install github.com/inconshreveable/go-bindata
 	bin/go-bindata -o src/ngrok/client/assets assets/client
 	bin/go-bindata -o src/ngrok/client/assets assets/client
 
 
 server-assets:
 server-assets:
-	go install github.com/inconshreveable/go-bindata
+	go get github.com/inconshreveable/go-bindata
+	GOOS="" GOARCH="" go install github.com/inconshreveable/go-bindata
 	bin/go-bindata -o src/ngrok/server/assets assets/server
 	bin/go-bindata -o src/ngrok/server/assets assets/server
 
 
 release-client: BUILDTAGS=release
 release-client: BUILDTAGS=release