From 05d335621b54901d247337b2703ce7b2dee5954d Mon Sep 17 00:00:00 2001 From: Miyurz Date: Sun, 22 Jan 2017 20:11:33 +0530 Subject: [PATCH] export PATH with GOPATH since gox and glide are under GOPATH/bin --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 448ba2b44..c06772f6b 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ BINARIES := helm tiller # Required for globs to work correctly SHELL=/bin/bash +export PATH := $(GOPATH)/bin:$(PATH) + .PHONY: all all: build @@ -26,10 +28,10 @@ all: build build: GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/... -# usage: make clean build-cross dist APP=helm|tiller VERSION=v2.0.0-alpha.3 +# usage: make clean bootstrap build-cross dist APP=helm|tiller VERSION=v2.0.0-alpha.3 .PHONY: build-cross -build-cross: LDFLAGS += -extldflags "-static" -build-cross: +build-cross: LDFLAGS += -extldflags "-static" +build-cross: bootstrap CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/$(APP) .PHONY: dist