aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-26 18:23:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-26 18:23:20 +1300
commitddecb8816020199cf5962e4bab20368bdd7da712 (patch)
tree840aa1e9dd19966761a622d1bce9654576b143fd /Makefile
parentCreate drafts directory (diff)
downloaddotfiles-ddecb8816020199cf5962e4bab20368bdd7da712.tar.gz
dotfiles-ddecb8816020199cf5962e4bab20368bdd7da712.zip
Use nicer mailbox creation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 145dbc92..504e48e4 100644
--- a/Makefile
+++ b/Makefile
@@ -273,16 +273,12 @@ install-mail : mail/mailrc
install -pm 0644 -- mail/mailrc "$(HOME)"/.mailrc
install-maildir :
- install -m 0755 -d -- \
- "$(MAILDIR)"/drafts/cur \
- "$(MAILDIR)"/drafts/new \
- "$(MAILDIR)"/drafts/tmp \
- "$(MAILDIR)"/inbox/cur \
- "$(MAILDIR)"/inbox/new \
- "$(MAILDIR)"/inbox/tmp \
- "$(MAILDIR)"/sent/cur \
- "$(MAILDIR)"/sent/new \
- "$(MAILDIR)"/sent/tmp
+ for box in drafts inbox sent ; do \
+ for dir in cur new tmp ; do \
+ install -m 0755 -d -- \
+ "$(MAILDIR)"/"$$box"/"$$dir" ; \
+ done ; \
+ done
install-mutt : mutt/muttrc install-mail install-maildir
install -m 0755 -d -- \