2015-03-26 13:26:05 -04:00
|
|
|
excludes = -I Makefile -I README.md
|
|
|
|
symlinks = $(shell ls $(excludes) `pwd`)
|
|
|
|
|
|
|
|
.PHONY: $(symlinks)
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
2015-12-10 16:17:09 -05:00
|
|
|
install: repos $(symlinks)
|
2015-12-10 10:55:01 -05:00
|
|
|
|
|
|
|
repos:
|
2015-12-10 16:17:09 -05:00
|
|
|
if test ! -d ~/.vim/bundle/vundle ; then \
|
|
|
|
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle ; \
|
|
|
|
fi
|
2015-03-26 13:26:05 -04:00
|
|
|
|
|
|
|
$(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
|