From adfb5cf699f122d53d358fb0efc8bae411b5a9e6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Oct 2014 01:21:18 +1300 Subject: Break vim target up a bit --- Makefile | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ba38662c..4befe620 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ install : install-bash \ install-readline \ install-sh \ install-terminfo \ - install-vim + install-vim \ + install-vim-plugins install-bash : test-bash install -m 0755 -d -- "$(HOME)"/.config "$(HOME)"/.bashrc.d @@ -105,17 +106,17 @@ install-urxvt : test-urxvt install -m 0755 -d -- "$(HOME)"/.urxvt/ext install -m 0755 -- urxvt/ext/* "$(HOME)"/.urxvt/ext -install-vim : - install -m 0755 -d -- \ - "$(HOME)"/.vim/after/ftplugin \ - "$(HOME)"/.vim/after/plugin \ - "$(HOME)"/.vim/autoload \ - "$(HOME)"/.vim/bundle +install-vim : install-vim-config \ + install-vim-plugins \ + install-vim-pathogen + +install-vim-config : install -m 0644 -- vim/vimrc "$(HOME)"/.vimrc install -m 0644 -- vim/gvimrc "$(HOME)"/.gvimrc - install -m 0644 -- vim/after/ftplugin/* "$(HOME)"/.vim/after/ftplugin - install -m 0644 -- vim/after/plugin/* "$(HOME)"/.vim/after/plugin + +install-vim-plugins : install-vim-config git submodule update --init + install -m 0755 -d -- "$(HOME)"/.vim/bundle cd vim && find bundle -name .git -prune -o \ \( -type d -print \) | \ while IFS= read -r dir ; do \ @@ -128,6 +129,14 @@ install-vim : install -m 0644 -- \ "$$file" "$(HOME)"/.vim/"$$file" ; \ done + install -m 0755 -d -- \ + "$(HOME)"/.vim/after/ftplugin \ + "$(HOME)"/.vim/after/plugin + install -m 0644 -- vim/after/ftplugin/* "$(HOME)"/.vim/after/ftplugin + install -m 0644 -- vim/after/plugin/* "$(HOME)"/.vim/after/plugin + +install-vim-pathogen : install-vim-plugins + install -m 0755 -d -- "$(HOME)"/.vim/autoload rm -f -- "$(HOME)"/.vim/autoload/pathogen.vim ln -s -- ../bundle/pathogen/autoload/pathogen.vim \ "$(HOME)"/.vim/autoload/pathogen.vim -- cgit v1.2.3