aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-26 08:17:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-26 08:19:08 +1300
commit0d6874e9bcc2ca628857bb1bfbed978fcee53a2b (patch)
tree5a26dd7ae736f4fb82c7e0f959c2b37e9e095ac8 /Makefile
parentAdd "pop" and "shift" methods to path() (diff)
downloaddotfiles-0d6874e9bcc2ca628857bb1bfbed978fcee53a2b.tar.gz
dotfiles-0d6874e9bcc2ca628857bb1bfbed978fcee53a2b.zip
Allow specifying MAILDIR for make(1)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e16dc944..193a9bf4 100644
--- a/Makefile
+++ b/Makefile
@@ -132,9 +132,12 @@ man/man7/dotfiles.7df : README.markdown man/man7/dotfiles.7df.header
cat man/man7/dotfiles.7df.header README.markdown | \
pandoc -sS -t man -o "$@"
+MAILDIR := $(HOME)/Mail
+
mutt/muttrc : mutt/muttrc.m4
m4 \
-D DOTFILES_SENDMAIL="$(SENDMAIL)" \
+ -D DOTFILES_MAILDIR="$(MAILDIR)" \
mutt/muttrc.m4 > mutt/muttrc
TMUX_BG := colour237
@@ -258,12 +261,12 @@ install-less :
install-maildir :
install -m 0755 -d -- \
- "$(HOME)"/Mail/inbox/cur \
- "$(HOME)"/Mail/inbox/new \
- "$(HOME)"/Mail/inbox/tmp \
- "$(HOME)"/Mail/sent/cur \
- "$(HOME)"/Mail/sent/new \
- "$(HOME)"/Mail/sent/tmp
+ "$(MAILDIR)"/inbox/cur \
+ "$(MAILDIR)"/inbox/new \
+ "$(MAILDIR)"/inbox/tmp \
+ "$(MAILDIR)"/sent/cur \
+ "$(MAILDIR)"/sent/new \
+ "$(MAILDIR)"/sent/tmp
install-mutt : mutt/muttrc install-maildir
install -m 0755 -d -- \