mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
Makefile: Calculate $(GOROOT), etc. relative to Makefile instead of using $(PWD), which is not always available (eg., in debuild).
This commit is contained in:
parent
452c88964a
commit
8a47f8a44d
4
Makefile
4
Makefile
@ -66,10 +66,10 @@ config:
|
||||
$(MAKE) -C config
|
||||
|
||||
$(SELFLINK): $(GOPATH)
|
||||
ln -s $(CURDIR) $@
|
||||
ln -s $(MAKEFILE_DIR) $@
|
||||
|
||||
$(GOPATH):
|
||||
cp -a $(CURDIR)/Godeps/_workspace $(GOPATH)
|
||||
cp -a $(MAKEFILE_DIR)/Godeps/_workspace $(GOPATH)
|
||||
|
||||
dependencies: $(GOCC) | $(SELFLINK)
|
||||
|
||||
|
@ -24,7 +24,9 @@ ARCH=$(shell uname -m)
|
||||
# Mac OS X release family.
|
||||
MAC_OS_X_VERSION ?= 10.8
|
||||
|
||||
BUILD_PATH = $(PWD)/.build
|
||||
MAKEFILE_DIR ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
BUILD_PATH = $(MAKEFILE_DIR)/.build
|
||||
|
||||
GO_VERSION := 1.4
|
||||
GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(OS))))
|
||||
|
Loading…
Reference in New Issue
Block a user