]> git.rmz.io Git - dotfiles.git/blobdiff - Makefile
Makefile: add target for git
[dotfiles.git] / Makefile
index 8a2c883db9effd8e206dbc0f57ce795efad8e2bb..d8da053456ba8fd63a0ab28821b77da40fc1bf54 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 APATH := $(realpath .)
 
 FILES := bin
 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 mpv offlineimap ranger retroarch xbindkeys xkb
 
 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 
 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
 install: $(FILES) $(DOTFILES) $(CONFIGFILES)
@@ -10,12 +10,25 @@ install: $(FILES) $(DOTFILES) $(CONFIGFILES)
 ~/.config:
        mkdir -p ~/.config
 
 ~/.config:
        mkdir -p ~/.config
 
-vim:
+git: ~/.config
+       ln -sfT $(APATH)/git ~/.config/git
+.PHONY: git
+
+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
 
        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
 awesome: ~/.config
        ln -sfT $(APATH)/awesome ~/.config/awesome
 .PHONY: awesome
@@ -32,20 +45,27 @@ mpd: systemd
        systemctl --user start mpd
 .PHONY: mpd
 
        systemctl --user start mpd
 .PHONY: mpd
 
-ncmpcpp:
+ncmpcpp: ~/.config
        ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
        mkdir -p ~/.local/share/mpd/lyrics
 .PHONY: ncmpcpp
 
        ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp
        mkdir -p ~/.local/share/mpd/lyrics
 .PHONY: ncmpcpp
 
-systemd:
+systemd: ~/.config
        ln -sfT $(APATH)/$@ ~/.config/$@
 .PHONY: systemd
 
        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)/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
 
        mkdir -p ~/.cache/zsh
 .PHONY: zsh
 
@@ -53,15 +73,15 @@ xprofile:
        ln -sfT $(APATH)/xprofile ~/.xprofile
 .PHONY: xprofile
 
        ln -sfT $(APATH)/xprofile ~/.xprofile
 .PHONY: xprofile
 
-dircolors:
+dircolors: ~/.config
        ln -sfT $(APATH)/dircolors ~/.config/dircolors
 .PHONY: dircolors
 
        ln -sfT $(APATH)/dircolors ~/.config/dircolors
 .PHONY: dircolors
 
-urxvt:
+urxvt: ~/.config
        ln -sfT $(APATH)/urxvt ~/.config/urxvt
 .PHONY: urxvt
 
        ln -sfT $(APATH)/urxvt ~/.config/urxvt
 .PHONY: urxvt
 
-$(FILES): 
+$(FILES):
        @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
            if [[ -d $@ ]]; then \
              cp -r ~/$@/* $@; \
        @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
            if [[ -d $@ ]]; then \
              cp -r ~/$@/* $@; \
@@ -69,10 +89,10 @@ $(FILES):
              cp -r ~/$@ $@; \
            fi; \
            rm -r ~/$@; \
              cp -r ~/$@ $@; \
            fi; \
            rm -r ~/$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/$@
 
        ln -sfT $(APATH)/$@ ~/$@
 
-$(DOTFILES): 
+$(DOTFILES):
        @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
            if [[ -d .$@ ]]; then \
              cp -r ~/.$@/* $@; \
        @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
            if [[ -d .$@ ]]; then \
              cp -r ~/.$@/* $@; \
@@ -80,7 +100,7 @@ $(DOTFILES):
              cp -r ~/.$@ $@; \
            fi; \
            rm -r ~/.$@; \
              cp -r ~/.$@ $@; \
            fi; \
            rm -r ~/.$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/.$@
 
 $(CONFIGFILES):  ~/.config
        ln -sfT $(APATH)/$@ ~/.$@
 
 $(CONFIGFILES):  ~/.config
@@ -91,5 +111,5 @@ $(CONFIGFILES):  ~/.config
              cp -r ~/.config/$@ $@; \
            fi; \
            rm -r ~/.config/$@; \
              cp -r ~/.config/$@ $@; \
            fi; \
            rm -r ~/.config/$@; \
-       fi; 
+       fi;
        ln -sfT $(APATH)/$@ ~/.config/$@
        ln -sfT $(APATH)/$@ ~/.config/$@