From 225b88bc311b48c03c92b00de67c2e59b494ba5f Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 5 Feb 2015 16:54:53 +0100 Subject: [PATCH] Fix Go download link for several archs and OSes. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 430ee68d..4536542b 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ VERSION := 0.7.1 SRC := $(wildcard *.go) TARGET := node_exporter -OS := $(subst Darwin,darwin,$(subst Linux,linux,$(shell uname))) -ARCH := $(subst x86_64,amd64,$(shell uname -m)) +OS := $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(shell uname)))) +ARCH := $(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) # The release engineers apparently need to key their binary artifacts to the # Mac OS X release family. @@ -18,7 +18,7 @@ RELEASE_SUFFIX ?= -osx$(MAC_OS_X_VERSION) else RELEASE_SUFFIX ?= endif - + GO_VERSION ?= 1.4.1 GOURL ?= https://golang.org/dl GOPKG ?= go$(GO_VERSION).$(GOOS)-$(GOARCH)$(RELEASE_SUFFIX).tar.gz