Create a Makefile for installation

This commit is contained in:
Andrew Tomaka 2015-03-26 13:26:05 -04:00
parent 826c5db8e4
commit 6a3e7e7936
20 changed files with 33 additions and 8 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
* oh-my-zsh/
vim/

10
.gitmodules vendored
View file

@ -1,6 +1,6 @@
[submodule ".oh-my-zsh"] [submodule "oh-my-zsh"]
path = .oh-my-zsh path = oh-my-zsh
url = https://github.com/robbyrussell/oh-my-zsh.git url = https://github.com/robbyrussell/oh-my-zsh.git
[submodule ".vim/bundle/vundle"] [submodule "vim/bundle/vundle"]
path = .vim/bundle/vundle path = vim/bundle/vundle
url = http://github.com/gmarik/vundle.git url = https://github.com/gmarik/vundle.git

@ -1 +0,0 @@
Subproject commit c3eb54839a070f447654ee6e6186343a1faa98e3

@ -1 +0,0 @@
Subproject commit 0b28e334e65b6628b0a61c412fcb45204a2f2bab

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
excludes = -I Makefile -I README.md
symlinks = $(shell ls $(excludes) `pwd`)
.PHONY: $(symlinks)
all: install
install: submodules $(symlinks)
submodules:
git submodule update --init
$(symlinks):
test -e `pwd`/$@ \
&& ln -sfn `pwd`/$@ ~/.$@
update: update-repo $(symlinks)
update-repo:
git pull --rebase
git submodule update
clean:
for file in $(symlinks); do rm ~/.$$file; done

View file

View file

1
oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit 1b6af5467677a3c9414a7cc4bcd3b5ac61907ca1

1
vim/bundle/vundle Submodule

@ -0,0 +1 @@
Subproject commit cfd3b2d388a8c2e9903d7a9d80a65539aabfe933

View file

View file