Permalink
Browse files

modify

  • Loading branch information...
1 parent 0400e3b commit 9ae4e10a1c9773cd16311f6067b901bc72ced11b @kmnk committed Nov 21, 2011
Showing with 26 additions and 11 deletions.
  1. +25 −10 Makefile
  2. +1 −1 README.markdown
View
@@ -1,27 +1,41 @@
# Makefile
-.PHONY: all update
+.PHONY: linux mac windows vim-setup install update clean
-all: vim-install linux
+linux: setup vim-setup vim-make-vimproc-linux
-linux:
- echo 'source '`pwd`'/dotfiles/dot.vimrc' >> ~/.vimrc
- echo 'source "'`pwd` >> ~/.vimrc
- echo 'source "'`pwd`'/config/vim/profiles' >> ~/.vimrc
- echo 'source "'`pwd`'/config/vim/dot.vim' >> ~/.vimrc
+mac: setup vim-setup vim-make-vimproc-mac
+
+windows: vim-setup
+
+setup:
echo 'source '`pwd`'/dotfiles/dot.zshrc' >> ~/.zshrc
echo 'source '`pwd`'/dotfiles/dot.screenrc' >> ~/.screenrc
-windows:
+vim-setup: vim-setup-vimrc vim-install-bundle vim-install-plugins
+
+vim-setup-vimrc:
+ echo 'source '`pwd`'/dotfiles/dot.vimrc' >> ~/.vimrc
+ echo '"root: '`pwd` >> ~/.vimrc
+ echo '"profiles: '`pwd`'/config/vim/profiles' >> ~/.vimrc
+ echo '".vim: '`pwd`'/config/vim/dot.vim' >> ~/.vimrc
-vim-install:
+vim-install-bundle:
mkdir -p ~/.bundle
git clone git://github.com/Shougo/neobundle.vim.git ~/.bundle/neobundle.vim
- vim -u ./vim/profiles/bundles.vim +NeoBundleInstall +q
+
+vim-make-vimproc-linux:
cd ~/.bundle/vimproc/ && make -f make_gcc.mak
+vim-make-vimproc-mac:
+ cd ~/.bundle/vimproc/ && make -f make_mac.mak
+
+
+install: vim-install-plugins
+
vim-install-plugins:
vim -u ./vim/profiles/bundles.vim +NeoBundleInstall +q
+
update: vim-update-plugins git-update
vim-update-plugins:
@@ -30,6 +44,7 @@ vim-update-plugins:
git-update:
git pull
+
clean: vim-clean-plugins
vim-clean-plugins:
View
@@ -2,7 +2,7 @@
$ git clone git://github.com/kmnk/config.git
$ cd config
- $ make
+ $ make linux
# update

0 comments on commit 9ae4e10

Please sign in to comment.