From: Samir Benmendil Date: Fri, 18 Jan 2013 20:00:39 +0000 (+0100) Subject: use absolute path X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/767c6733dfa1928e55d12ae6c53ff070579e6e65 use absolute path --- diff --git a/Makefile b/Makefile index cfbb170..8427708 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ APATH := $(realpath .) -RPATH := $(subst $(wildcard ~/),,$(APATH)) FILES := bin DOTFILES := aliases bash* conky* flexget git* vim* xbindkeysrc Xmodmap zsh* @@ -17,7 +16,7 @@ $(FILES): fi; \ rm -r ~/$@; \ fi; - ln -sfT $(RPATH)/$@ ~/$@ + ln -sfT $(APATH)/$@ ~/$@ $(DOTFILES): @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \ @@ -28,7 +27,7 @@ $(DOTFILES): fi; \ rm -r ~/.$@; \ fi; - ln -sfT $(RPATH)/$@ ~/.$@ + ln -sfT $(APATH)/$@ ~/.$@ $(CONFIGFILES): @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \ @@ -39,4 +38,4 @@ $(CONFIGFILES): fi; \ rm -r ~/.config/$@; \ fi; - ln -sfT $(RPATH)/$@ ~/.config/$@ + ln -sfT $(APATH)/$@ ~/.config/$@