]> git.rmz.io Git - dotfiles.git/commitdiff
Makefile: Use XDG_CACHE_HOME
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 9 Jul 2019 10:38:00 +0000 (11:38 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 9 Jul 2019 10:38:00 +0000 (11:38 +0100)
Makefile

index 03ebc327ae17258182f0dcf382d264a506f01cb3..a2dddded44f58c08c3b2c103a9be66ce55d6f5ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 APATH := $(realpath .)
 
 XDG_CONFIG_HOME ?= ~/.config
+XDG_CACHE_HOME  ?= ~/.cache
 XDG_DATA_HOME   ?= ~/.local/share
 
 FILES := bin
@@ -87,7 +88,7 @@ zsh: $(XDG_CONFIG_HOME)
        ln -sfT $(APATH)/zshenv ~/.zshenv
        ln -sfT $(APATH)/zsh $(XDG_CONFIG_HOME)/zsh
        ln -sfT $(APATH)/aliases $(XDG_CONFIG_HOME)/aliases
-       mkdir -p ~/.cache/zsh
+       mkdir -p $(XDG_CACHE_HOME)/zsh
 .PHONY: zsh
 
 $(FILES):