From 5a6fcbc00544c60886d9afad24f030b841f608a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= <rene.kijewski@fu-berlin.de> Date: Tue, 5 Apr 2016 11:39:57 +0200 Subject: [PATCH] make: always use absolute path --- Makefile.include | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index ec3eb4033a..e5fa87fd18 100644 --- a/Makefile.include +++ b/Makefile.include @@ -7,7 +7,8 @@ all: RIOTBASE ?= $(shell dirname "$(lastword $(MAKEFILE_LIST))") RIOTBASE := $(abspath $(RIOTBASE)) -CCACHE_BASEDIR := $(RIOTBASE) +CCACHE_BASEDIR ?= $(RIOTBASE) +CCACHE_BASEDIR := $(abspath $(CCACHE_BASEDIR)) RIOTCPU ?= $(RIOTBASE)/cpu RIOTCPU := $(abspath $(RIOTCPU)) @@ -16,11 +17,13 @@ RIOTBOARD ?= $(RIOTBASE)/boards RIOTBOARD := $(abspath $(RIOTBOARD)) RIOTPKG ?= $(RIOTBASE)/pkg +RIOTPKG := $(abspath $(RIOTPKG)) RIOTPROJECT ?= $(shell git rev-parse --show-toplevel 2>/dev/null || pwd) RIOTPROJECT := $(abspath $(RIOTPROJECT)) -GITCACHE:=$(RIOTBASE)/dist/tools/git/git-cache +GITCACHE ?= $(RIOTBASE)/dist/tools/git/git-cache +GITCACHE := $(abspath $(GITCACHE)) # Include Docker settings near the top because we need to build the environment # command line before some of the variable origins are overwritten below when -- GitLab