diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-08 14:04:44 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-08 14:15:58 -0500 |
commit | a774bcf62efe5de4195add1ce1cddc70e50d5dec (patch) | |
tree | 29c1774398f6b2583fec62dfee94ecc4c3812f22 /.config/Makefile | |
parent | fc4ed81f7d2991eaebabcf0cc90003d0fd793c31 (diff) |
.config/Makefile: place all state info in ${XDG_CACHE_HOME}/config
Diffstat (limited to '.config/Makefile')
-rw-r--r-- | .config/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/Makefile b/.config/Makefile index 3b7ebb1..4e8166e 100644 --- a/.config/Makefile +++ b/.config/Makefile @@ -7,11 +7,12 @@ else SHELL = /bin/bash -o pipefail GIT_DIR = ${HOME}/.git +STATEDIR = ${XDG_CACHE_HOME}/config targets = \ ${GIT_DIR}/info/exclude \ - ${XDG_CACHE_HOME}/config-symlinks/cookie \ - $(if $(shell crontab -l),${XDG_CACHE_HOME}/cron/cookie) \ + ${STATEDIR}/symlinks.stamp \ + $(if $(shell crontab -l),${STATEDIR}/crontab.stamp) \ $(if $(wildcard ${HOME}/Maildir),${HOME}/.folders) \ $(if $(wildcard ${XDG_CONFIG_HOME}/dconf/user),${XDG_CONFIG_HOME}/dconf/user.txt) @@ -28,12 +29,12 @@ ${GIT_DIR}/info/exclude: ${HOME}/.git.info.exclude.in $(shell echo .??*/) ${XDG_CONFIG_HOME}/dconf/user.txt: ${XDG_CONFIG_HOME}/dconf/user dconf dump / > $@ -${XDG_CACHE_HOME}/cron/cookie: ${XDG_CONFIG_HOME}/cron +${STATEDIR}/crontab.stamp: ${XDG_CONFIG_HOME}/cron -(cat $^/*; echo) | crontab - 2>/dev/null mkdir -p '$(@D)' date > '$@' -${XDG_CACHE_HOME}/config-symlinks/cookie: ${XDG_CONFIG_HOME}/symlinks +${STATEDIR}/symlinks.stamp: ${XDG_CONFIG_HOME}/symlinks config-symlinks mkdir -p '$(@D)' date > '$@' |