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:04:44 -0500 |
commit | 723c0ac4a451f9501e008af0d5307c155da6e67b (patch) | |
tree | dc170fb81792bcc384fad8596eb7becfb22e1568 /.config | |
parent | d3341d160f3c0aa747543bc8dfa15ed38e4cd2c9 (diff) |
.config/Makefile: place all state info in ${XDG_CACHE_HOME}/config
Diffstat (limited to '.config')
-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 > '$@' |