4 DOTFILES := goobookrc msmtp* profile tmux.conf weechat Xresources
5 CONFIGFILES := 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
64 ln -sfT $(APATH)/aliases ~/.config/aliases
69 ln -sfT $(APATH)/xprofile ~/.xprofile
73 ln -sfT $(APATH)/dircolors ~/.config/dircolors
77 ln -sfT $(APATH)/urxvt ~/.config/urxvt
81 @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
82 if [[ -d $@ ]]; then \
89 ln -sfT $(APATH)/$@ ~/$@
92 @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
93 if [[ -d .$@ ]]; then \
100 ln -sfT $(APATH)/$@ ~/.$@
102 $(CONFIGFILES): ~/.config
103 @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
104 if [[ -d .config/$@ ]]; then \
105 cp -r ~/.config/$@/* $@; \
107 cp -r ~/.config/$@ $@; \
109 rm -r ~/.config/$@; \
111 ln -sfT $(APATH)/$@ ~/.config/$@