From ddecb8816020199cf5962e4bab20368bdd7da712 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 26 Jan 2017 18:23:20 +1300 Subject: Use nicer mailbox creation --- Makefile | 16 ++++++---------- 1 file 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 -- \ -- cgit v1.2.3