X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3e15c7e178bf62658a23570a628ff6e989d32ea9..597f492caf7440699e8da0ae5bdef6499d3b2f2c:/Makefile diff --git a/Makefile b/Makefile index 1f63f7c..cfbb170 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,11 @@ APATH := $(realpath .) RPATH := $(subst $(wildcard ~/),,$(APATH)) FILES := bin -DOTFILES := aliasesrc bash* flexget vim* zsh* +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 \ @@ -28,3 +29,14 @@ $(DOTFILES): 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/$@