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
18 ln -sfT $(APATH)/vim ~/.config/vim
19 mkdir -p ~/.local/share/vim
20 git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
24 ln -sfT $(APATH)/mutt ~/.config/mutt
28 ln -sfT $(APATH)/gdbinit ~/.gdbinit
29 ln -sfT $(APATH)/cgdb ~/.cgdb
33 ln -sfT $(APATH)/awesome ~/.config/awesome
36 qutebrowser: ~/.config
37 ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
42 ln -sfT $(APATH)/mpd ~/.config/mpd
43 mkdir -p ~/.local/share/mpd/playlists
44 systemctl --user enable mpd
45 systemctl --user start mpd
49 ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
50 mkdir -p ~/.local/share/mpd/lyrics
54 ln -sfT $(APATH)/$@ ~/.config/$@
58 ln -sfT $(APATH)/$@ ~/.config/$@
59 systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
60 systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
64 ln -sfT $(APATH)/zshrc ~/.zshrc
65 ln -sfT $(APATH)/zprofile ~/.zprofile
66 ln -sfT $(APATH)/zshenv ~/.zshenv
67 ln -sfT $(APATH)/zsh ~/.config/zsh
68 ln -sfT $(APATH)/aliases ~/.config/aliases
73 ln -sfT $(APATH)/xprofile ~/.xprofile
77 ln -sfT $(APATH)/dircolors ~/.config/dircolors
81 ln -sfT $(APATH)/urxvt ~/.config/urxvt
85 @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
86 if [[ -d $@ ]]; then \
93 ln -sfT $(APATH)/$@ ~/$@
96 @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
97 if [[ -d .$@ ]]; then \
104 ln -sfT $(APATH)/$@ ~/.$@
106 $(CONFIGFILES): ~/.config
107 @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
108 if [[ -d .config/$@ ]]; then \
109 cp -r ~/.config/$@/* $@; \
111 cp -r ~/.config/$@ $@; \
113 rm -r ~/.config/$@; \
115 ln -sfT $(APATH)/$@ ~/.config/$@