4 DOTFILES := goobookrc msmtp* 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)/mutt ~/.config/mutt
24 ln -sfT $(APATH)/gdbinit ~/.gdbinit
25 ln -sfT $(APATH)/cgdb ~/.cgdb
29 ln -sfT $(APATH)/awesome ~/.config/awesome
32 qutebrowser: ~/.config
33 ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
38 ln -sfT $(APATH)/mpd ~/.config/mpd
39 mkdir -p ~/.local/share/mpd/playlists
40 systemctl --user enable mpd
41 systemctl --user start mpd
45 ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
46 mkdir -p ~/.local/share/mpd/lyrics
50 ln -sfT $(APATH)/$@ ~/.config/$@
54 ln -sfT $(APATH)/$@ ~/.config/$@
55 systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
56 systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
60 ln -sfT $(APATH)/zshrc ~/.zshrc
61 ln -sfT $(APATH)/zprofile ~/.zprofile
62 ln -sfT $(APATH)/zshenv ~/.zshenv
63 ln -sfT $(APATH)/zsh ~/.config/zsh
68 ln -sfT $(APATH)/xprofile ~/.xprofile
72 ln -sfT $(APATH)/dircolors ~/.config/dircolors
76 ln -sfT $(APATH)/urxvt ~/.config/urxvt
80 @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
81 if [[ -d $@ ]]; then \
88 ln -sfT $(APATH)/$@ ~/$@
91 @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
92 if [[ -d .$@ ]]; then \
99 ln -sfT $(APATH)/$@ ~/.$@
101 $(CONFIGFILES): ~/.config
102 @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
103 if [[ -d .config/$@ ]]; then \
104 cp -r ~/.config/$@/* $@; \
106 cp -r ~/.config/$@ $@; \
108 rm -r ~/.config/$@; \
110 ln -sfT $(APATH)/$@ ~/.config/$@