From fd7775e25143eff5d61c30ce17dfdbc1e3ff48f9 Mon Sep 17 00:00:00 2001 From: Joshua Rubin Date: Tue, 24 May 2016 16:50:27 -0600 Subject: [PATCH] fix build with multi-part $GOPATH --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4c36f6809..2ccfe9e90 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -GO := GO15VENDOREXPERIMENT=1 go -PROMU := $(GOPATH)/bin/promu -pkgs = $(shell $(GO) list ./... | grep -v /vendor/) +GO := GO15VENDOREXPERIMENT=1 go +FIRST_GOPATH := $(firstword $(subst :, ,$(GOPATH))) +PROMU := $(FIRST_GOPATH)/bin/promu +pkgs = $(shell $(GO) list ./... | grep -v /vendor/) PREFIX ?= $(shell pwd) BIN_DIR ?= $(shell pwd)