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

Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR.

This fixes building an example that is outside of RIOT with docker and
also fixes building from a release archive.
parent 289e635e
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,8 @@ endif ...@@ -66,7 +66,8 @@ endif
MAKEOVERRIDES += $(foreach v,$(__DIRECTORY_VARIABLES),$(v)=$($(v))) MAKEOVERRIDES += $(foreach v,$(__DIRECTORY_VARIABLES),$(v)=$($(v)))
# Path to the current directory relative to RIOTPROJECT # Path to the current directory relative to RIOTPROJECT
BUILDRELPATH ?= $(CURDIR:$(RIOTPROJECT)/%=%)/ # trailing '/' is important when RIOTPROJECT == CURDIR
BUILDRELPATH ?= $(patsubst $(RIOTPROJECT)/%,%,$(CURDIR)/)
# get host operating system # get host operating system
OS := $(shell uname) OS := $(shell uname)
......
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