aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-01 16:54:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-01 16:54:29 +1200
commitd79cb0392451afb3959ea4a254e2834e469db407 (patch)
treeaffc35be8ee1bdf88a3d0dcd3628cf1a45a2f3f6 /Makefile
parentCorrect comment spelling in .vimrc (diff)
downloaddotfiles-d79cb0392451afb3959ea4a254e2834e469db407.tar.gz
dotfiles-d79cb0392451afb3959ea4a254e2834e469db407.zip
Support nested dirs in two Vim runtime subdirs
~/.vim/after/ftplugin and ~/.vim/autoload, specifically.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4f8b867b..45726635 100644
--- a/Makefile
+++ b/Makefile
@@ -509,8 +509,11 @@ install-vim-after: install-vim-after-ftplugin \
install-vim-after-syntax
install-vim-after-ftplugin:
- mkdir -p $(VIMDIR)/after/ftplugin
- cp -p -- vim/after/ftplugin/*.vim $(VIMDIR)/after/ftplugin
+ find vim/after/ftplugin/* \
+ -type d -exec sh -c \
+ 'mkdir -p -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \
+ -o -type f -exec sh -c \
+ 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \;
install-vim-after-indent:
mkdir -p $(VIMDIR)/after/indent
@@ -525,8 +528,11 @@ install-vim-after-syntax:
cp -p -- vim/after/syntax/*.vim $(VIMDIR)/after/syntax
install-vim-autoload:
- mkdir -p -- $(VIMDIR)/autoload
- cp -p -- vim/autoload/*.vim $(VIMDIR)/autoload
+ find vim/autoload/* \
+ -type d -exec sh -c \
+ 'mkdir -p -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \
+ -o -type f -exec sh -c \
+ 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \;
install-vim-bundle: install-vim-config
find vim/bundle/*/* \