diff options
author | Pontus Leitzler <leitzler@users.noreply.github.com> | 2017-03-22 18:20:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 18:20:32 +0100 |
commit | 2c3a652f5831bf7884e3c34194183812f63f7348 (patch) | |
tree | ee660c38b7223ae73133086e49aa0db124699c83 /Makefile | |
parent | 6580c95305dd97499025bf3bcfc9a461173ffa54 (diff) | |
download | prometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.tar.bz2 prometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.tar.xz prometheus_node_collector-2c3a652f5831bf7884e3c34194183812f63f7348.zip |
Use go env to fetch GOPATH to support Go 1.8
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ | |||
12 | # limitations under the License. | 12 | # limitations under the License. |
13 | 13 | ||
14 | GO ?= GO15VENDOREXPERIMENT=1 go | 14 | GO ?= GO15VENDOREXPERIMENT=1 go |
15 | GOPATH := $(firstword $(subst :, ,$(GOPATH))) | 15 | GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) |
16 | 16 | ||
17 | PROMU ?= $(GOPATH)/bin/promu | 17 | PROMU ?= $(GOPATH)/bin/promu |
18 | STATICCHECK ?= $(GOPATH)/bin/staticcheck | 18 | STATICCHECK ?= $(GOPATH)/bin/staticcheck |