From: Jack Humbert Date: Sat, 18 Jun 2016 01:10:17 +0000 (-0400) Subject: fix for parent folders with spaces (#403) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c4ea06d2557ad0611af691fc5082a9ce134f5821;p=qmk_firmware.git fix for parent folders with spaces (#403) --- diff --git a/Makefile b/Makefile index 47fc785a6..b1e77102e 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,9 @@ ifndef VERBOSE .SILENT: endif -starting_makefile := $(abspath $(firstword $(MAKEFILE_LIST))) -mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) +space := $(subst ,, ) +starting_makefile := $(subst $(space),_SPACE_,$(abspath $(firstword $(MAKEFILE_LIST)))) +mkfile_path := $(subst $(space),_SPACE_,$(abspath $(lastword $(MAKEFILE_LIST)))) abs_tmk_root := $(patsubst %/,%,$(dir $(mkfile_path))) ifneq (,$(findstring /keyboard/,$(starting_makefile)))