aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes 'fish' Ziemke <github@freigeist.org>2016-12-29 18:52:36 +0100
committerJohannes 'fish' Ziemke <github@freigeist.org>2016-12-29 18:52:36 +0100
commit2c5f17d4e7e6aee1685151529bfc8b833b248d7c (patch)
treec4c134e69247b9d41a78a68696893a694ea9938e /Makefile
parent41271cd99cf6b3583cf27df85b1cc784c7eb2a21 (diff)
downloadprometheus_node_collector-2c5f17d4e7e6aee1685151529bfc8b833b248d7c.tar.bz2
prometheus_node_collector-2c5f17d4e7e6aee1685151529bfc8b833b248d7c.tar.xz
prometheus_node_collector-2c5f17d4e7e6aee1685151529bfc8b833b248d7c.zip
Fix Makefile by using first element of GOPATH
If GOPATH includes multiple paths, running `make promu` would fail. This fixes it by always using the first path.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a02a842..acf2b5c 100644
--- a/Makefile
+++ b/Makefile
@@ -11,9 +11,10 @@
11# See the License for the specific language governing permissions and 11# See the License for the specific language governing permissions and
12# limitations under the License. 12# limitations under the License.
13 13
14GO ?= GO15VENDOREXPERIMENT=1 go 14GO ?= GO15VENDOREXPERIMENT=1 go
15PROMU ?= $(GOPATH)/bin/promu 15GOPATH := $(firstword $(subst :, ,$(GOPATH)))
16pkgs = $(shell $(GO) list ./... | grep -v /vendor/) 16PROMU ?= $(GOPATH)/bin/promu
17pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
17 18
18PREFIX ?= $(shell pwd) 19PREFIX ?= $(shell pwd)
19BIN_DIR ?= $(shell pwd) 20BIN_DIR ?= $(shell pwd)