]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fix for parent folders with spaces (#403)
authorJack Humbert <jack.humb@gmail.com>
Sat, 18 Jun 2016 01:10:17 +0000 (21:10 -0400)
committerJack Humbert <jack.humb@gmail.com>
Sat, 18 Jun 2016 01:10:17 +0000 (21:10 -0400)
Makefile

index 47fc785a6e089b84108f1b0a33f73198c697e0e9..b1e77102e0f52ae748b01881c1956b04c6043d64 100644 (file)
--- 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)))