aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fd08950d..134935ae 100644
--- a/Makefile
+++ b/Makefile
@@ -546,8 +546,13 @@ install-vim-ftdetect:
cp -p -- vim/ftdetect/*.vim $(VIMDIR)/ftdetect
install-vim-ftplugin:
- mkdir -p -- $(VIMDIR)/ftplugin
- cp -p -- vim/ftplugin/*.vim $(VIMDIR)/ftplugin
+ mkdir -p $(VIMDIR)/ftplugin
+ find vim/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-indent:
mkdir -p -- $(VIMDIR)/indent