diff --git a/Makefile b/Makefile index 0355958c2..b187d896b 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ tarball: build tar -C $(BUILD_PATH)/package -czf prometheus.tar.gz . $(BUILD_PATH)/cache/$(GOPKG): - curl -o $@ http://go.googlecode.com/files/$(GOPKG) + curl -o $@ $(GOURL)/$(GOPKG) clean: $(MAKE) -C $(BUILD_PATH) clean diff --git a/Makefile.INCLUDE b/Makefile.INCLUDE index 1200bd004..9847fe1f9 100644 --- a/Makefile.INCLUDE +++ b/Makefile.INCLUDE @@ -30,17 +30,18 @@ ARCH=$(shell uname -m) BUILD_PATH = $(PWD)/.build -GO_VERSION := 1.1 -GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(OS))) -GOARCH = $(subst x86_64,amd64,$(ARCH)) -GOPKG = go$(GO_VERSION).$(GOOS)-$(GOARCH).tar.gz -GOROOT = $(BUILD_PATH)/root/go -GOPATH = $(BUILD_PATH)/root/gopath -GOCC = $(GOROOT)/bin/go -TMPDIR = /tmp -GOENV = TMPDIR=$(TMPDIR) GOROOT=$(GOROOT) GOPATH=$(GOPATH) -GO = $(GOENV) $(GOCC) -GOFMT = $(GOROOT)/bin/gofmt +GO_VERSION := 1.1 +GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(OS))) +GOARCH = $(subst x86_64,amd64,$(ARCH)) +GOPKG ?= go$(GO_VERSION).$(GOOS)-$(GOARCH).tar.gz +GOURL ?= http://go.googlecode.com/files +GOROOT = $(BUILD_PATH)/root/go +GOPATH = $(BUILD_PATH)/root/gopath +GOCC = $(GOROOT)/bin/go +TMPDIR = /tmp +GOENV = TMPDIR=$(TMPDIR) GOROOT=$(GOROOT) GOPATH=$(GOPATH) +GO = $(GOENV) $(GOCC) +GOFMT = $(GOROOT)/bin/gofmt LEVELDB_VERSION := 1.12.0 PROTOCOL_BUFFERS_VERSION := 2.5.0