1
0
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:
Gaëtan Harter 2018-07-27 21:01:55 +02:00
parent 289e635e5a
commit a5b2af1baf
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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)