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 ln -sfT $(APATH)/gdbinit ~/.gdbinit
33 ln -sfT $(APATH)/cgdb ~/.cgdb
37 ln -sfT $(APATH)/awesome ~/.config/awesome
40 qutebrowser: ~/.config
41 ln -sfT $(APATH)/qutebrowser ~/.config/qutebrowser
46 ln -sfT $(APATH)/mpd ~/.config/mpd
47 mkdir -p ~/.local/share/mpd/playlists
48 systemctl --user enable mpd
49 systemctl --user start mpd
53 ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
54 mkdir -p ~/.local/share/mpd/lyrics
58 ln -sfT $(APATH)/$@ ~/.config/$@
62 ln -sfT $(APATH)/$@ ~/.config/$@
63 systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
64 systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
68 ln -sfT $(APATH)/zshrc ~/.zshrc
69 ln -sfT $(APATH)/zprofile ~/.zprofile
70 ln -sfT $(APATH)/zshenv ~/.zshenv
71 ln -sfT $(APATH)/zsh ~/.config/zsh
72 ln -sfT $(APATH)/aliases ~/.config/aliases
77 ln -sfT $(APATH)/xprofile ~/.xprofile
81 ln -sfT $(APATH)/dircolors ~/.config/dircolors
85 ln -sfT $(APATH)/urxvt ~/.config/urxvt
89 @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
90 if [[ -d $@ ]]; then \
97 ln -sfT $(APATH)/$@ ~/$@
100 @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
101 if [[ -d .$@ ]]; then \
108 ln -sfT $(APATH)/$@ ~/.$@
110 $(CONFIGFILES): ~/.config
111 @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
112 if [[ -d .config/$@ ]]; then \
113 cp -r ~/.config/$@/* $@; \
115 cp -r ~/.config/$@ $@; \
117 rm -r ~/.config/$@; \
119 ln -sfT $(APATH)/$@ ~/.config/$@