summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-22 00:24:39 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-22 00:24:39 (GMT)
commit5032e43a9db194d43fe82f5f300f279859e74fba (patch)
treea6b115ad3c5d63b5c24159e2961078ac7cbb7817
parent2d32de3d672073e4cafa37af2d9516f911912b78 (diff)
honor GOROOT variable if set
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c87c39f..af6efe9 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,11 @@
##
curdir:= $(shell pwd)
+ifndef GOROOT
GOCMD := GOPATH=$(curdir) go
+else
+GOCMD := GOPATH=$(curdir) $(GOROOT)/bin/go
+endif
EXECUTEABLE := rhctl