aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-28 11:26:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-28 11:26:43 +1200
commit1327bf1a430b77aa38a69e4de33d92cf844f0bad (patch)
treeeb67688e6a477dc40e91b8c740ec8c9eeb36865d
parentFirst commit (diff)
parentBump VERSION (diff)
downloadvim-make-target-1327bf1a430b77aa38a69e4de33d92cf844f0bad.tar.gz
vim-make-target-1327bf1a430b77aa38a69e4de33d92cf844f0bad.zip
Merge branch 'release/v0.2.0'v0.2.0
* release/v0.2.0: Bump VERSION Escape target if supported Use -C to change directory in :make call
-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