From 2f56d7862958d6a4f71975d2575ad143922124c7 Mon Sep 17 00:00:00 2001 From: Achilleas Anagnostopoulos Date: Sat, 17 Jun 2017 11:08:02 +0100 Subject: [PATCH] Make the GO variable visible on non-linux hosts --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 92b3b55..bc975ab 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,16 @@ BUILD_ABS_DIR := $(CURDIR)/$(BUILD_DIR) kernel_target :=$(BUILD_DIR)/kernel-$(ARCH).bin iso_target := $(BUILD_DIR)/kernel-$(ARCH).iso +# If your go is called something else set it on the commandline, like +# this: make run GO=go1.8 +GO ?= go + ifeq ($(OS), Linux) export SHELL := /bin/bash -o pipefail LD := ld AS := nasm -# If your go is called something else set it on the commandline, like -# this: make run GO=go1.8 -GO ?= go GOOS := linux GOARCH := amd64 GOROOT := $(shell $(GO) env GOROOT)