diff --git a/Makefile.include b/Makefile.include index 94dd0a3e5..f3749064a 100644 --- a/Makefile.include +++ b/Makefile.include @@ -4,7 +4,7 @@ all: # set undefined variables -RIOTBASE ?= $(shell dirname "$(lastword $(MAKEFILE_LIST))") +RIOTBASE ?= $(dir $(lastword $(MAKEFILE_LIST))) CCACHE_BASEDIR ?= $(RIOTBASE) RIOTCPU ?= $(RIOTBASE)/cpu RIOTBOARD ?= $(RIOTBASE)/boards