dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2011-07-10 19:22:15 +0100 +0100
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2011-07-10 19:23:38 +0100 +0100
Commit: ac1d4fc87578fd8f64237c03e4bfa9ef68f090d9
Parent: d2bc8b3199d9c2be831a37281ffec4039a8ba55b


Create a Makefile to install my env, including oh-my-zsh and dotvim
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..117f23d5472ea75e8f0e68429e4d5404cb8e1f84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+DESTDIR=$(HOME)
+
+oh-my-zsh:
+	test -d $(DESTDIR)/.oh-my-zsh || git clone git://github.com/robbyrussell/oh-my-zsh.git $(DESTDIR)/.oh-my-zsh
+
+git-env:
+	test -d $(DESTDIR)/.env || git clone https://github.com/kylef/env.git $(DESTDIR)/.env
+
+zsh: oh-my-zsh git-env
+	install $(DESTDIR)/.env/template $(DESTDIR)/.zshrc
+
+git-vim:
+	test -d $(DESTDIR)/.vim || git clone --recursive https://github.com/kylef/dotvim.git $(DESTDIR)/.vim
+	mkdir -p $(DESTDIR)/.vim/autoload
+	test -h $(DESTDIR)/.vim/autoload/pathogen.vim || ln -s $(DESTDIR)/.vim/bundle/pathogen/autoload/pathogen.vim $(DESTDIR)/.vim/autoload/pathogen.vim
+
+vim: git-vim
+	install $(DESTDIR)/.vim/templates/vimrc $(DESTDIR)/.vimrc
+	install $(DESTDIR)/.vim/templates/gvimrc  $(DESTDIR)/.gvimrc
+
+all: zsh vim