aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/make/target.vim7
2 files changed, 6 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 6e8bf73..0ea3a94 100644
--- a/VERSION
+++ b/VERSION
@@ -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