dotfiles/Makefile
Andrew Tomaka f2676dabcf Prompt work...mostly, notes
Hack together a prompt that does most of what we did before but is a bit
simpler.  Throw it all into precmd because why not....
2015-12-11 00:23:32 -05:00

26 lines
480 B
Makefile

excludes = -I Makefile -I README.md
symlinks = $(shell ls $(excludes) `pwd`)
.PHONY: $(symlinks)
all: install
install: repos $(symlinks)
repos:
if test ! -d ~/.vim/bundle/vundle ; then \
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle ; \
fi
$(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