diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 14:41:33 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 14:41:33 -0400 |
commit | b0cdbb3da2c2b36d3c65b00db4eaf5a0d29c2cd6 (patch) | |
tree | 6815d1584f909fd52a87f04de26fc179ae7c163e /.config/Makefile | |
parent | 5f7de477be298f158369862c1a3cc80286fc7e32 (diff) | |
parent | 9413cf45dfc7601ace8d448a026a24073b6d73b4 (diff) |
Merge branch 'thinkpenguin-par'
Diffstat (limited to '.config/Makefile')
-rw-r--r-- | .config/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.config/Makefile b/.config/Makefile new file mode 100644 index 0000000..829b820 --- /dev/null +++ b/.config/Makefile @@ -0,0 +1,40 @@ +#!/usr/bin/make -f + +SHELL = /bin/bash + +GITDIR = ${HOME}/.git + +targets = \ + ${GITDIR}/info/exclude \ + ${HOME}/.folders \ + ${XDG_CACHE_HOME}/config-symlinks/cookie \ + ${XDG_CACHE_HOME}/cron/cookie + +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: ${HOME}/.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 > '$@' + +${XDG_CACHE_HOME}/config-symlinks/cookie: ${XDG_CONFIG_HOME}/symlinks + config-symlinks + 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: ; |