From e252820a3fe76eb728d9a5e9796e1c971094e08b Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 25 Feb 2018 21:22:29 +0000 Subject: [PATCH] Makefile: fix some target dependencies --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 3184bb6..eb5f29b 100644 --- a/Makefile +++ b/Makefile @@ -10,13 +10,13 @@ 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: +mutt: ~/.config ln -sfT $(APATH)/mutt ~/.config/mutt .PHONY: mutt @@ -41,12 +41,12 @@ mpd: systemd 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 @@ -56,7 +56,7 @@ gnupg: systemd systemctl --user start gpg-agent.socket gpg-agent-extra.socket gpg-agent-browser.socket dirmngr.socket .PHONY: gnupg -zsh: +zsh: ~/.config ln -sfT $(APATH)/zshrc ~/.zshrc ln -sfT $(APATH)/zprofile ~/.zprofile ln -sfT $(APATH)/zshenv ~/.zshenv @@ -68,15 +68,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 ~/$@/* $@; \ @@ -84,10 +84,10 @@ $(FILES): cp -r ~/$@ $@; \ fi; \ rm -r ~/$@; \ - fi; + fi; ln -sfT $(APATH)/$@ ~/$@ -$(DOTFILES): +$(DOTFILES): @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \ if [[ -d .$@ ]]; then \ cp -r ~/.$@/* $@; \ @@ -95,7 +95,7 @@ $(DOTFILES): cp -r ~/.$@ $@; \ fi; \ rm -r ~/.$@; \ - fi; + fi; ln -sfT $(APATH)/$@ ~/.$@ $(CONFIGFILES): ~/.config @@ -106,5 +106,5 @@ $(CONFIGFILES): ~/.config cp -r ~/.config/$@ $@; \ fi; \ rm -r ~/.config/$@; \ - fi; + fi; ln -sfT $(APATH)/$@ ~/.config/$@ -- 2.48.1