Skip to content
Snippets Groups Projects
Unverified Commit f82ace91 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

Makefile.include: Fix default RIOTBASE when there is Makefile.local

When an application only includes Makefile.include without specifying
RIOTBASE and uses a `Makefile.local` file, RIOTBASE would use a wrong
default value and get the value of the directory where `Makefile.local` is.
parent 289e635e
No related branches found
No related tags found
No related merge requests found
# 'Makefile.include' directory, must be evaluated before other 'include'
_riotbase := $(dir $(lastword $(MAKEFILE_LIST)))
# Globally set default goal to `all` # Globally set default goal to `all`
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
...@@ -5,7 +8,7 @@ ...@@ -5,7 +8,7 @@
-include Makefile.local -include Makefile.local
# set undefined variables # set undefined variables
RIOTBASE ?= $(dir $(lastword $(MAKEFILE_LIST))) RIOTBASE ?= $(_riotbase)
CCACHE_BASEDIR ?= $(RIOTBASE) CCACHE_BASEDIR ?= $(RIOTBASE)
RIOTCPU ?= $(RIOTBASE)/cpu RIOTCPU ?= $(RIOTBASE)/cpu
RIOTBOARD ?= $(RIOTBASE)/boards RIOTBOARD ?= $(RIOTBASE)/boards
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment