summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/cron/crontab (renamed from .crontab)2
-rw-r--r--Makefile8
2 files changed, 4 insertions, 6 deletions
diff --git a/.crontab b/.config/cron/crontab
index ca405cf..e396cef 100644
--- a/.crontab
+++ b/.config/cron/crontab
@@ -1,3 +1,3 @@
# m h dom mon dow command
-*/5 * * * * cd $HOME && make
+*/5 * * * * cd $HOME/.config && make
*/5 * * * * offlineimap-runner 2 -u quiet
diff --git a/Makefile b/Makefile
index 1335456..5e4fb21 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,11 @@ clean:
.git.info.exclude: .git.info.exclude.in $(shell echo .??*/)
( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@
-.crontab.cookie: .crontab .crontab.local
- -(cat $^; echo) | crontab - 2>/dev/null
+.cache/cron/cookie: .config/cron
+ -(cat $^/*; echo) | crontab - 2>/dev/null
+ mkdir -p '$(@D)'
date > '$@'
-# don't do anything, just create these if they doesn't exist
-.crontab.local:
- touch '$@'
Maildir:
mkdir -p '$@'/{cur,new,tmp}
Maildir/%: | Maildir