Makefile: install tools in system's gopath

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-09-21 11:41:23 +02:00
parent aebd365cf4
commit c11bf15e83
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -6,6 +6,7 @@ OCID_IMAGE := ocid_dev$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
OCID_LINK := ${CURDIR}/vendor/src/github.com/kubernetes-incubator/ocid OCID_LINK := ${CURDIR}/vendor/src/github.com/kubernetes-incubator/ocid
OCID_LINK_DIR := ${CURDIR}/vendor/src/github.com/kubernetes-incubator OCID_LINK_DIR := ${CURDIR}/vendor/src/github.com/kubernetes-incubator
OCID_INSTANCE := ocid_dev OCID_INSTANCE := ocid_dev
SYSTEM_GOPATH := ${GOPATH}
export GOPATH := ${CURDIR}/vendor export GOPATH := ${CURDIR}/vendor
default: help default: help
@ -70,20 +71,14 @@ endif
.PHONY: install.tools .PHONY: install.tools
install.tools: .install.gitvalidation .install.glide .install.glide-vc .install.gometalinter install.tools: .install.gitvalidation .install.gometalinter
.install.gitvalidation: .install.gitvalidation:
go get github.com/vbatts/git-validation GOPATH=${SYSTEM_GOPATH} go get github.com/vbatts/git-validation
.install.glide:
go get github.com/Masterminds/glide
.install.glide-vc:
go get github.com/sgotti/glide-vc
.install.gometalinter: .install.gometalinter:
go get github.com/alecthomas/gometalinter GOPATH=${SYSTEM_GOPATH} go get github.com/alecthomas/gometalinter
gometalinter --install GOPATH=${SYSTEM_GOPATH} gometalinter --install
.PHONY: \ .PHONY: \
binaries \ binaries \