mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-02 08:42:31 -08:00
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.
This commit is contained in:
parent
41271cd99c
commit
2c5f17d4e7
7
Makefile
7
Makefile
|
@ -11,9 +11,10 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
GO ?= GO15VENDOREXPERIMENT=1 go
|
GO ?= GO15VENDOREXPERIMENT=1 go
|
||||||
PROMU ?= $(GOPATH)/bin/promu
|
GOPATH := $(firstword $(subst :, ,$(GOPATH)))
|
||||||
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
|
PROMU ?= $(GOPATH)/bin/promu
|
||||||
|
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
PREFIX ?= $(shell pwd)
|
PREFIX ?= $(shell pwd)
|
||||||
BIN_DIR ?= $(shell pwd)
|
BIN_DIR ?= $(shell pwd)
|
||||||
|
|
Loading…
Reference in a new issue