4 DOTFILES := goobookrc msmtp* profile tmux.conf weechat Xresources
 
   5 CONFIGFILES := compton.conf mpv offlineimap ranger retroarch xbindkeys xkb
 
   7 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 
   8 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 
  14         ln -sfT $(APATH)/git ~/.config/git
 
  15         ln -sfT $(APATH)/tig ~/.config/tig
 
  19         ln -sfT $(APATH)/vim ~/.config/vim
 
  20         mkdir -p ~/.local/share/vim
 
  21         git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
 
  25         ln -sfT $(APATH)/mutt ~/.config/mutt
 
  29         ln -sfT $(APATH)/gdbinit ~/.gdbinit
 
  30         ln -sfT $(APATH)/cgdb ~/.cgdb
 
  34         ln -sfT $(APATH)/awesome ~/.config/awesome
 
  37 qutebrowser: ~/.config
 
  38         ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
 
  43         ln -sfT $(APATH)/mpd ~/.config/mpd
 
  44         mkdir -p ~/.local/share/mpd/playlists
 
  45         systemctl --user enable mpd
 
  46         systemctl --user start mpd
 
  50         ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
 
  51         mkdir -p ~/.local/share/mpd/lyrics
 
  55         ln -sfT $(APATH)/$@ ~/.config/$@
 
  59         ln -sfT $(APATH)/$@ ~/.config/$@
 
  60         systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
 
  61         systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
 
  65         ln -sfT $(APATH)/zshrc ~/.zshrc
 
  66         ln -sfT $(APATH)/zprofile ~/.zprofile
 
  67         ln -sfT $(APATH)/zshenv ~/.zshenv
 
  68         ln -sfT $(APATH)/zsh ~/.config/zsh
 
  69         ln -sfT $(APATH)/aliases ~/.config/aliases
 
  74         ln -sfT $(APATH)/xprofile ~/.xprofile
 
  78         ln -sfT $(APATH)/dircolors ~/.config/dircolors
 
  82         ln -sfT $(APATH)/urxvt ~/.config/urxvt
 
  86         @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
 
  87             if [[ -d $@ ]]; then \
 
  94         ln -sfT $(APATH)/$@ ~/$@
 
  97         @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
 
  98             if [[ -d .$@ ]]; then \
 
 105         ln -sfT $(APATH)/$@ ~/.$@
 
 107 $(CONFIGFILES):  ~/.config
 
 108         @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
 
 109             if [[ -d .config/$@ ]]; then \
 
 110               cp -r ~/.config/$@/* $@; \
 
 112               cp -r ~/.config/$@ $@; \
 
 114             rm -r ~/.config/$@; \
 
 116         ln -sfT $(APATH)/$@ ~/.config/$@