Skip to content

Commit

Permalink
fix for parent folders with spaces (qmk#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Jun 18, 2016
1 parent e175b8d commit c4ea06d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit c4ea06d

Please sign in to comment.