FILES := bin
DOTFILES := aliases bash* conky* flexget git* vim* xbindkeysrc Xmodmap zsh*
+CONFIGFILES := retroarch
-.PHONY: install $(FILES) $(DOTFILES)
-install: $(FILES) $(DOTFILES)
+.PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
+install: $(FILES) $(DOTFILES) $(CONFIGFILES)
$(FILES):
@if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
rm -r ~/.$@; \
fi;
ln -sfT $(RPATH)/$@ ~/.$@
+
+$(CONFIGFILES):
+ @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
+ if [[ -d .config/$@ ]]; then \
+ cp -r ~/.config/$@/* $@; \
+ else \
+ cp -r ~/.config/$@ $@; \
+ fi; \
+ rm -r ~/.config/$@; \
+ fi;
+ ln -sfT $(RPATH)/$@ ~/.config/$@