]> git.rmz.io Git - dotfiles.git/blobdiff - Makefile
Makefile: install aliases with zsh
[dotfiles.git] / Makefile
index 034683df0140157763e25856664a29f0d64b8f50..df4c443e41a1ad61665fef0a427a496955563e0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 APATH := $(realpath .)
 
 FILES := bin
-DOTFILES := conky* goobookrc msmtp* mutt profile tmux.conf weechat Xresources
-CONFIGFILES := aliases compton.conf git gnupg mpv offlineimap ranger retroarch xbindkeys xkb
+DOTFILES := goobookrc msmtp* profile tmux.conf weechat Xresources
+CONFIGFILES := compton.conf git mpv offlineimap ranger retroarch xbindkeys xkb
 
 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
@@ -10,12 +10,21 @@ install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 ~/.config:
        mkdir -p ~/.config
 
-vim:
+vim: ~/.config
        ln -sfT $(APATH)/vim ~/.config/vim
        mkdir -p ~/.local/share/vim
        git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle
 .PHONY: vim
 
+mutt: ~/.config
+       ln -sfT $(APATH)/mutt ~/.config/mutt
+.PHONY: mutt
+
+gdb:
+       ln -sfT $(APATH)/gdbinit ~/.gdbinit
+       ln -sfT $(APATH)/cgdb ~/.cgdb
+.PHONY: gdb
+
 awesome: ~/.config
        ln -sfT $(APATH)/awesome ~/.config/awesome
 .PHONY: awesome
@@ -25,25 +34,34 @@ qutebrowser: ~/.config
        mkdir -p ~/downloads
 .PHONY: qutebrowser
 
-mpd:
+mpd: systemd
        ln -sfT $(APATH)/mpd ~/.config/mpd
        mkdir -p ~/.local/share/mpd/playlists
+       systemctl --user enable mpd
+       systemctl --user start mpd
 .PHONY: mpd
 
-ncmpcpp:
+ncmpcpp: ~/.config
        ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
        mkdir -p ~/.local/share/mpd/lyrics
 .PHONY: ncmpcpp
 
-systemd:
+systemd: ~/.config
        ln -sfT $(APATH)/$@ ~/.config/$@
 .PHONY: systemd
 
-zsh:
+gnupg: systemd
+       ln -sfT $(APATH)/$@ ~/.config/$@
+       systemctl --user enable gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
+       systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket
+.PHONY: gnupg
+
+zsh: ~/.config
        ln -sfT $(APATH)/zshrc ~/.zshrc
        ln -sfT $(APATH)/zprofile ~/.zprofile
        ln -sfT $(APATH)/zshenv ~/.zshenv
        ln -sfT $(APATH)/zsh ~/.config/zsh
+       ln -sfT $(APATH)/aliases ~/.config/aliases
        mkdir -p ~/.cache/zsh
 .PHONY: zsh
 
@@ -51,15 +69,15 @@ xprofile:
        ln -sfT $(APATH)/xprofile ~/.xprofile
 .PHONY: xprofile
 
-dircolors:
+dircolors: ~/.config
        ln -sfT $(APATH)/dircolors ~/.config/dircolors
 .PHONY: dircolors
 
-urxvt:
+urxvt: ~/.config
        ln -sfT $(APATH)/urxvt ~/.config/urxvt
 .PHONY: urxvt
 
-$(FILES): 
+$(FILES):
        @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
            if [[ -d $@ ]]; then \
              cp -r ~/$@/* $@; \
@@ -67,10 +85,10 @@ $(FILES):
              cp -r ~/$@ $@; \
            fi; \
            rm -r ~/$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/$@
 
-$(DOTFILES): 
+$(DOTFILES):
        @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
            if [[ -d .$@ ]]; then \
              cp -r ~/.$@/* $@; \
@@ -78,7 +96,7 @@ $(DOTFILES):
              cp -r ~/.$@ $@; \
            fi; \
            rm -r ~/.$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/.$@
 
 $(CONFIGFILES):  ~/.config
@@ -89,5 +107,5 @@ $(CONFIGFILES):  ~/.config
              cp -r ~/.config/$@ $@; \
            fi; \
            rm -r ~/.config/$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/.config/$@