4 DOTFILES := conky* goobookrc msmtp* mutt profile tmux.conf weechat Xresources xprofile
 
   5 CONFIGFILES := aliases compton.conf git gnupg mpv offlineimap ranger retroarch systemd vim xbindkeys xkb
 
   7 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 
   8 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 
  11         ln -sfT $(APATH)/mpd ~/.config/mpd
 
  12         mkdir -p ~/.local/share/mpd/playlists
 
  16         ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
 
  17         mkdir -p ~/.local/share/mpd/lyrics
 
  21         ln -sfT $(APATH)/zshrc ~/.zshrc
 
  22         ln -sfT $(APATH)/zprofile ~/.zprofile
 
  23         ln -sfT $(APATH)/zshenv ~/.zshenv
 
  24         ln -sfT $(APATH)/zsh ~/.config/zsh
 
  29         ln -sfT $(APATH)/xprofile ~/.xprofile
 
  33         ln -sfT $(APATH)/dircolors ~/.config/dircolors
 
  37         @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
 
  38             if [[ -d $@ ]]; then \
 
  45         ln -sfT $(APATH)/$@ ~/$@
 
  48         @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
 
  49             if [[ -d .$@ ]]; then \
 
  56         ln -sfT $(APATH)/$@ ~/.$@
 
  59         @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
 
  60             if [[ -d .config/$@ ]]; then \
 
  61               cp -r ~/.config/$@/* $@; \
 
  63               cp -r ~/.config/$@ $@; \
 
  67         ln -sfT $(APATH)/$@ ~/.config/$@