Simplify Makefile promu fetch

Closes: https://github.com/prometheus/prometheus/issues/3460
This commit is contained in:
Ben Kochie 2017-11-13 11:13:14 +01:00
parent 3cc01a3088
commit 8bfbb4e733

View file

@ -87,10 +87,7 @@ assets:
promu:
@echo ">> fetching promu"
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
GO="$(GO)" \
$(GO) get -u github.com/prometheus/promu
@GOOS= GOARCH= $(GO) get -u github.com/prometheus/promu
$(FIRST_GOPATH)/bin/staticcheck:
@GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck