forked from mirror/client_golang
Merge pull request #67 from prometheus/arch-os-build-fixes
Fix Go download link for several archs and OSes.
This commit is contained in:
commit
52186fc518
6
Makefile
6
Makefile
|
@ -21,7 +21,7 @@ MAC_OS_X_VERSION ?= 10.8
|
||||||
BUILD_PATH = $(PWD)/.build
|
BUILD_PATH = $(PWD)/.build
|
||||||
|
|
||||||
export GO_VERSION = 1.4
|
export GO_VERSION = 1.4
|
||||||
export GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(OS)))
|
export GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(OS))))
|
||||||
|
|
||||||
ifeq ($(GOOS),darwin)
|
ifeq ($(GOOS),darwin)
|
||||||
RELEASE_SUFFIX ?= -osx$(MAC_OS_X_VERSION)
|
RELEASE_SUFFIX ?= -osx$(MAC_OS_X_VERSION)
|
||||||
|
@ -32,9 +32,9 @@ endif
|
||||||
# Never honor GOBIN, should it be set at all.
|
# Never honor GOBIN, should it be set at all.
|
||||||
unexport GOBIN
|
unexport GOBIN
|
||||||
|
|
||||||
export GOARCH = $(subst x86_64,amd64,$(ARCH))
|
export GOARCH = $(subst x86_64,amd64,$(patsubst i%86,386,$(ARCH)))
|
||||||
export GOPKG = go$(GO_VERSION).$(GOOS)-$(GOARCH)$(RELEASE_SUFFIX).tar.gz
|
export GOPKG = go$(GO_VERSION).$(GOOS)-$(GOARCH)$(RELEASE_SUFFIX).tar.gz
|
||||||
export GOURL = http://golang.org/dl
|
export GOURL = https://golang.org/dl
|
||||||
export GOROOT = $(BUILD_PATH)/root/go
|
export GOROOT = $(BUILD_PATH)/root/go
|
||||||
export GOPATH = $(BUILD_PATH)/root/gopath
|
export GOPATH = $(BUILD_PATH)/root/gopath
|
||||||
export GOCC = $(GOROOT)/bin/go
|
export GOCC = $(GOROOT)/bin/go
|
||||||
|
|
Loading…
Reference in New Issue