Makefile: install tools in system's gopath
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
aebd365cf4
commit
c11bf15e83
1 changed files with 5 additions and 10 deletions
15
Makefile
15
Makefile
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue