~ruther/qmk_firmware

c4ea06d2557ad0611af691fc5082a9ce134f5821 — Jack Humbert 9 years ago e175b8d
fix for parent folders with spaces (#403)
1 files changed, 3 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +3 -2
@@ 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)))