summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6d28864..6d2921b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,22 @@
CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/
NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK)))))
-all: .nanorc
+targets=.nanorc .folders .crontab.cookie
+all: $(targets)
+clean:
+ rm -f $(targets)
.nanorc: .nanorc.in $(NANO_SHARE)
cat '$<' > '$@'
for file in $(NANO_SHARE)/*.nanorc; do echo "include \"$$file\""; done >> '$@'
+.folders: Maildir
+ find ~/Maildir -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@'>'$@'
+
+.crontab.cookie: .crontab .crontab.local
+ cat $^ | crontab
+ date > '$@'
+
commit:
git commit -a