Merge pull request #1984 from rneugeba/build

build: Make GOOS and GOARCH over-writeable
This commit is contained in:
Riyaz Faizullabhoy 2017-06-07 10:59:20 -07:00 committed by GitHub
commit 21e6ca46c8

View File

@ -9,8 +9,8 @@ GO_COMPILE=linuxkit/go-compile:6579a00b44686d0e504d513fc4860094769fe7df
MOBY?=bin/moby
LINUXKIT?=bin/linuxkit
GOOS=$(shell uname -s | tr '[:upper:]' '[:lower:]')
GOARCH=amd64
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]')
GOARCH?=amd64
ifneq ($(GOOS),linux)
CROSS=-e GOOS=$(GOOS) -e GOARCH=$(GOARCH)
endif