diff options
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/make/target.vim | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -1 +1 @@ -0.1.0 +0.2.0 diff --git a/autoload/make/target.vim b/autoload/make/target.vim index e3c0861..1f16801 100644 --- a/autoload/make/target.vim +++ b/autoload/make/target.vim @@ -24,9 +24,12 @@ function! make#target#Make() abort endfor - " If we found targets, :make them + " If we found targets, :make them; escape them if we can for l:target in l:targets - execute 'make! '.l:target + if exists('*shellescape') + let l:target = shellescape(l:target) + endif + execute 'make! -C %:p:h '.l:target endfor endfunction |