1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10302 from cladmi/pr/make/docker/fix_riotproject_is_appdir

Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR.
This commit is contained in:
Gaëtan Harter 2018-11-01 09:46:33 +01:00 committed by GitHub
commit 2fc5ad6bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,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)