diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-06-17 21:10:17 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-06-17 21:10:17 -0400 |
| commit | c4ea06d2557ad0611af691fc5082a9ce134f5821 (patch) | |
| tree | 52b83863e591c488d999ad6b9a73876af2b86c81 | |
| parent | e175b8d56f148716de2fbc7d1c31830547e592e4 (diff) | |
| download | qmk_firmware-c4ea06d2557ad0611af691fc5082a9ce134f5821.tar.gz qmk_firmware-c4ea06d2557ad0611af691fc5082a9ce134f5821.zip | |
fix for parent folders with spaces (#403)
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -2,8 +2,9 @@ ifndef VERBOSE | |||
| 2 | .SILENT: | 2 | .SILENT: |
| 3 | endif | 3 | endif |
| 4 | 4 | ||
| 5 | starting_makefile := $(abspath $(firstword $(MAKEFILE_LIST))) | 5 | space := $(subst ,, ) |
| 6 | mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) | 6 | starting_makefile := $(subst $(space),_SPACE_,$(abspath $(firstword $(MAKEFILE_LIST)))) |
| 7 | mkfile_path := $(subst $(space),_SPACE_,$(abspath $(lastword $(MAKEFILE_LIST)))) | ||
| 7 | abs_tmk_root := $(patsubst %/,%,$(dir $(mkfile_path))) | 8 | abs_tmk_root := $(patsubst %/,%,$(dir $(mkfile_path))) |
| 8 | 9 | ||
| 9 | ifneq (,$(findstring /keyboard/,$(starting_makefile))) | 10 | ifneq (,$(findstring /keyboard/,$(starting_makefile))) |
