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)/taskrc ~/.config/taskrc
17 ln -sfT $(APATH)/git ~/.config/git
18 ln -sfT $(APATH)/tig ~/.config/tig
22 ln -sfT $(APATH)/vim ~/.config/vim
23 mkdir -p ~/.local/share/vim
24 git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
28 ln -sfT $(APATH)/mutt ~/.config/mutt
32 mkdir ~/.local/share/gdb
33 ln -sfT $(APATH)/gdbinit ~/.gdbinit
34 ln -sfT $(APATH)/cgdb ~/.cgdb
38 ln -sfT $(APATH)/awesome ~/.config/awesome
41 qutebrowser: ~/.config
42 ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
47 ln -sfT $(APATH)/mpd ~/.config/mpd
48 mkdir -p ~/.local/share/mpd/playlists
49 systemctl --user enable mpd
50 systemctl --user start mpd
54 ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
55 mkdir -p ~/.local/share/mpd/lyrics
59 ln -sfT $(APATH)/$@ ~/.config/$@
63 ln -sfT $(APATH)/$@ ~/.config/$@
64 systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
65 systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
69 ln -sfT $(APATH)/zshrc ~/.zshrc
70 ln -sfT $(APATH)/zprofile ~/.zprofile
71 ln -sfT $(APATH)/zshenv ~/.zshenv
72 ln -sfT $(APATH)/zsh ~/.config/zsh
73 ln -sfT $(APATH)/aliases ~/.config/aliases
78 ln -sfT $(APATH)/xprofile ~/.xprofile
82 ln -sfT $(APATH)/dircolors ~/.config/dircolors
86 ln -sfT $(APATH)/urxvt ~/.config/urxvt
90 @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
91 if [[ -d $@ ]]; then \
98 ln -sfT $(APATH)/$@ ~/$@
101 @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
102 if [[ -d .$@ ]]; then \
109 ln -sfT $(APATH)/$@ ~/.$@
111 $(CONFIGFILES): ~/.config
112 @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
113 if [[ -d .config/$@ ]]; then \
114 cp -r ~/.config/$@/* $@; \
116 cp -r ~/.config/$@ $@; \
118 rm -r ~/.config/$@; \
120 ln -sfT $(APATH)/$@ ~/.config/$@