]> git.rmz.io Git - dotfiles.git/blobdiff - Makefile
ncmpcpp: add config
[dotfiles.git] / Makefile
index 52f1c845ee884d2a64f137cd2f5f55aee993e159..790826f78bc9b02e6787ec9fd2cab786821f8247 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
 APATH := $(realpath .)
-RPATH := $(subst $(wildcard ~/),,$(APATH))
 
 FILES := bin
-DOTFILES := aliases bash* conky* flexget vim* zsh*
+DOTFILES := aliases bash* conky* flexget git* goobookrc msmtp* mutt ncmpcpp offlineimap* vim* weechat xbindkeysrc Xmodmap Xresources xprofile zsh*
+CONFIGFILES := retroarch compton.conf mimeo.conf
 
-.PHONY: install $(FILES) $(DOTFILES)
-install: $(FILES) $(DOTFILES)
+.PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
+install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 
 $(FILES): 
        @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
@@ -16,7 +16,7 @@ $(FILES):
            fi; \
            rm -r ~/$@; \
        fi; 
-       ln -sfT $(RPATH)/$@ ~/$@
+       ln -sfT $(APATH)/$@ ~/$@
 
 $(DOTFILES): 
        @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
@@ -27,4 +27,15 @@ $(DOTFILES):
            fi; \
            rm -r ~/.$@; \
        fi; 
-       ln -sfT $(RPATH)/$@ ~/.$@
+       ln -sfT $(APATH)/$@ ~/.$@
+
+$(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 $(APATH)/$@ ~/.config/$@