Create a Makefile for installation
This commit is contained in:
parent
826c5db8e4
commit
6a3e7e7936
20 changed files with 33 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*
|
||||
oh-my-zsh/
|
||||
vim/
|
||||
|
|
10
.gitmodules
vendored
10
.gitmodules
vendored
|
@ -1,6 +1,6 @@
|
|||
[submodule ".oh-my-zsh"]
|
||||
path = .oh-my-zsh
|
||||
[submodule "oh-my-zsh"]
|
||||
path = oh-my-zsh
|
||||
url = https://github.com/robbyrussell/oh-my-zsh.git
|
||||
[submodule ".vim/bundle/vundle"]
|
||||
path = .vim/bundle/vundle
|
||||
url = http://github.com/gmarik/vundle.git
|
||||
[submodule "vim/bundle/vundle"]
|
||||
path = vim/bundle/vundle
|
||||
url = https://github.com/gmarik/vundle.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit c3eb54839a070f447654ee6e6186343a1faa98e3
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0b28e334e65b6628b0a61c412fcb45204a2f2bab
|
24
Makefile
Normal file
24
Makefile
Normal 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
|
1
oh-my-zsh
Submodule
1
oh-my-zsh
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1b6af5467677a3c9414a7cc4bcd3b5ac61907ca1
|
1
vim/bundle/vundle
Submodule
1
vim/bundle/vundle
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit cfd3b2d388a8c2e9903d7a9d80a65539aabfe933
|
Loading…
Reference in a new issue