4 DOTFILES := conky* goobookrc msmtp* mutt profile tmux.conf weechat Xresources
 
   5 CONFIGFILES := aliases compton.conf git mpv offlineimap ranger retroarch xbindkeys xkb
 
   7 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 
   8 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 
  14         ln -sfT $(APATH)/vim ~/.config/vim
 
  15         mkdir -p ~/.local/share/vim
 
  16         git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
 
  20         ln -sfT $(APATH)/awesome ~/.config/awesome
 
  23 qutebrowser: ~/.config
 
  24         ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
 
  29         ln -sfT $(APATH)/mpd ~/.config/mpd
 
  30         mkdir -p ~/.local/share/mpd/playlists
 
  31         systemctl --user enable mpd
 
  32         systemctl --user start mpd
 
  36         ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
 
  37         mkdir -p ~/.local/share/mpd/lyrics
 
  41         ln -sfT $(APATH)/$@ ~/.config/$@
 
  45         ln -sfT $(APATH)/$@ ~/.config/$@
 
  46         systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
 
  47         systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
 
  51         ln -sfT $(APATH)/zshrc ~/.zshrc
 
  52         ln -sfT $(APATH)/zprofile ~/.zprofile
 
  53         ln -sfT $(APATH)/zshenv ~/.zshenv
 
  54         ln -sfT $(APATH)/zsh ~/.config/zsh
 
  59         ln -sfT $(APATH)/xprofile ~/.xprofile
 
  63         ln -sfT $(APATH)/dircolors ~/.config/dircolors
 
  67         ln -sfT $(APATH)/urxvt ~/.config/urxvt
 
  71         @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
 
  72             if [[ -d $@ ]]; then \
 
  79         ln -sfT $(APATH)/$@ ~/$@
 
  82         @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
 
  83             if [[ -d .$@ ]]; then \
 
  90         ln -sfT $(APATH)/$@ ~/.$@
 
  92 $(CONFIGFILES):  ~/.config
 
  93         @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
 
  94             if [[ -d .config/$@ ]]; then \
 
  95               cp -r ~/.config/$@/* $@; \
 
  97               cp -r ~/.config/$@ $@; \
 
 101         ln -sfT $(APATH)/$@ ~/.config/$@