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)/dircolors ~/.config/dircolors
 
  33         @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
 
  34             if [[ -d $@ ]]; then \
 
  41         ln -sfT $(APATH)/$@ ~/$@
 
  44         @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
 
  45             if [[ -d .$@ ]]; then \
 
  52         ln -sfT $(APATH)/$@ ~/.$@
 
  55         @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
 
  56             if [[ -d .config/$@ ]]; then \
 
  57               cp -r ~/.config/$@/* $@; \
 
  59               cp -r ~/.config/$@ $@; \
 
  63         ln -sfT $(APATH)/$@ ~/.config/$@