From 1d79e07051b7f27c36b8da0a7d8655a388dc7827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Tue, 5 Apr 2016 15:27:34 +0200 Subject: [PATCH] make: BUILDRELPATH without call to git --- Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 3ef25e828..4a090eb79 100644 --- a/Makefile.include +++ b/Makefile.include @@ -39,8 +39,8 @@ endif # Use absolute paths in recusive "make" even if overriden on command line. MAKEOVERRIDES += $(foreach v,${__DIRECTORY_VARIABLES},${v}=${${v}}) -# Path to the current directory relative to the git root -BUILDRELPATH ?= $(shell git rev-parse --show-prefix) +# Path to the current directory relative to RIOTPROJECT +BUILDRELPATH ?= ${PWD:${RIOTPROJECT}/%=%}/ # 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