aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-01-15 08:44:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-01-15 08:44:18 +1300
commit78cb28e65f0a359c243c9a7fe8a5a2fb60dc10ae (patch)
tree4bb10245411171b7f3b3bfb16f4e8348a06b7de6 /Makefile
parentDiscard PHP's indenting (diff)
downloaddotfiles-78cb28e65f0a359c243c9a7fe8a5a2fb60dc10ae.tar.gz
dotfiles-78cb28e65f0a359c243c9a7fe8a5a2fb60dc10ae.zip
Use a loop for vim after dirs installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index c5642225..b2e4f90e 100644
--- a/Makefile
+++ b/Makefile
@@ -183,15 +183,11 @@ install-vim-plugins : vim-plugins install-vim-config
install -m 0644 -- \
"$$file" "$(HOME)"/.vim/"$$file" ; \
done
- install -m 0755 -d -- \
- "$(HOME)"/.vim/after/indent \
- "$(HOME)"/.vim/after/ftdetect \
- "$(HOME)"/.vim/after/ftplugin \
- "$(HOME)"/.vim/after/syntax
- install -m 0644 -- vim/after/indent/* "$(HOME)"/.vim/after/indent
- install -m 0644 -- vim/after/ftdetect/* "$(HOME)"/.vim/after/ftdetect
- install -m 0644 -- vim/after/ftplugin/* "$(HOME)"/.vim/after/ftplugin
- install -m 0644 -- vim/after/syntax/* "$(HOME)"/.vim/after/syntax
+ for dir in indent ftdetect ftplugin syntax ; do \
+ install -m 0755 -d -- "$(HOME)"/.vim/after/"$$dir" ; \
+ install -m 0644 -- vim/after/"$$dir"/* \
+ "$(HOME)"/.vim/after/"$$dir" ; \
+ done
install-vim-pathogen : install-vim-plugins
install -m 0755 -d -- "$(HOME)"/.vim/autoload