summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-06-17 21:10:17 -0400
committerJack Humbert <jack.humb@gmail.com>2016-06-17 21:10:17 -0400
commitc4ea06d2557ad0611af691fc5082a9ce134f5821 (patch)
tree52b83863e591c488d999ad6b9a73876af2b86c81 /Makefile
parente175b8d56f148716de2fbc7d1c31830547e592e4 (diff)
fix for parent folders with spaces (#403)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 47fc785a6e..b1e77102e0 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)))