]> git.rmz.io Git - dotfiles.git/blobdiff - Makefile
use absolute path
[dotfiles.git] / Makefile
index cfbb170f0724598fb0e04a3265d67b6c97b6d9a8..842770875e01a65c248f56c0caa050f788b8e45f 100644 (file)
--- 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/$@