From 4ee3d75de8c9e25c01c1f94917e3445f4e8428a9 Mon Sep 17 00:00:00 2001 From: Felix Geller Date: Wed, 22 Jun 2016 22:04:54 +1200 Subject: [PATCH] try to guess os in makefile. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 752bb13..60aaf5b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ export SHELL:=/usr/bin/env bash -O extglob -c export GO15VENDOREXPERIMENT:=1 +export OS=$(shell uname | tr '[:upper:]' '[:lower:]') -build: GOOS ?= darwin +build: GOOS ?= ${OS} build: GOARCH ?= amd64 build: test rm -f kt