makefile: use explicit paths to binary dependencies in $GOPATH/bin

This commit is contained in:
mappu 2017-11-12 10:39:05 +13:00
parent 0679ad31a7
commit bd59534bac

View File

@ -17,7 +17,7 @@ deps:
npm i
go get -u github.com/jteeuwen/go-bindata/...
go get -u github.com/golang/dep/cmd/dep
dep ensure
$(GOPATH)/bin/dep ensure
clean:
rm -f ./$(BINNAME)
@ -39,7 +39,7 @@ bindata.go: client client/*
html-minifier --collapse-whitespace -o clientpack/index.min.htm clientpack/index.htm
mv clientpack/index.min.htm clientpack/index.htm
rm clientpack/bundle.min.js
go-bindata -nomemcopy -nometadata -prefix clientpack clientpack
$(GOPATH)/bin/go-bindata -nomemcopy -nometadata -prefix clientpack clientpack
$(BINNAME).exe: bindata.go *.go
GOARCH=386 GOOS=windows go build $(GOFLAGS) -o $(BINNAME).exe