mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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.
This commit is contained in:
parent
289e635e5a
commit
a5b2af1baf
@ -66,7 +66,8 @@ endif
|
||||
MAKEOVERRIDES += $(foreach v,$(__DIRECTORY_VARIABLES),$(v)=$($(v)))
|
||||
|
||||
# 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
|
||||
OS := $(shell uname)
|
||||
|
Loading…
Reference in New Issue
Block a user