2015-03-26 13:26:05 -04:00
|
|
|
excludes = -I Makefile -I README.md
|
|
|
|
symlinks = $(shell ls $(excludes) `pwd`)
|
|
|
|
|
|
|
|
.PHONY: $(symlinks)
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
install: submodules $(symlinks)
|
|
|
|
|
|
|
|
submodules:
|
2015-08-01 19:13:03 -04:00
|
|
|
git submodule update --init --recursive
|
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
|