blob: 391e43c83881b28e0234ad19ee9d4a5509ea781c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
SHELL = /bin/bash
GITDIR=${HOME}/.git
targets=${HOME}/.folders ${XDG_CACHE_HOME}/cron/cookie ${GITDIR}/info/exclude
all: $(targets)
clean:
rm -f $(targets)
${HOME}/.folders: ${HOME}/Maildir
( echo '..'; find $< -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@' )|sort>'$@'
${GITDIR}/info/exclude: .git.info.exclude.in $(shell echo .??*/)
( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@
${XDG_CACHE_HOME}/cron/cookie: ${XDG_CONFIG_HOME}/cron
-(cat $^/*; echo) | crontab - 2>/dev/null
mkdir -p '$(@D)'
date > '$@'
${HOME}/Maildir:
mkdir -p '$@'/{cur,new,tmp}
${HOME}/Maildir/%: | ${HOME}/Maildir
mkdir -p '$@'/{cur,new,tmp}
touch '$@'/maildirfolder
.PHONY: FORCE PHONY
FORCE: ;
PHONY: ;
|