aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-26 13:04:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-26 13:05:11 +1300
commit8d8b41a243caf9f9897482ffe549c771792878dd (patch)
tree74184a1b1e59896e7f6af793c30ae733ce4815a3 /Makefile
parentAdd an idea (diff)
downloaddotfiles-8d8b41a243caf9f9897482ffe549c771792878dd.tar.gz
dotfiles-8d8b41a243caf9f9897482ffe549c771792878dd.zip
Add ~/.mailrc config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae9eedff..1e8664af 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@
install-gtk \
install-i3 \
install-less \
+ install-mail \
install-maildir \
install-mutt \
install-ncmcpp \
@@ -111,6 +112,7 @@ clean distclean :
$(GAMES) \
git/gitconfig \
gnupg/gpg.conf \
+ mail/mailrc \
man/man7/dotfiles.7df \
mutt/muttrc \
tmux/tmux.conf \
@@ -128,6 +130,10 @@ gnupg/gpg.conf : gnupg/gpg.conf.m4
m4 -D DOTFILES_HOME="$(HOME)" \
gnupg/gpg.conf.m4 > gnupg/gpg.conf
+mail/mailrc : mail/mailrc.m4
+ m4 -D DOTFILES_SENDMAIL="$$(command -v "$(SENDMAIL)")" \
+ mail/mailrc.m4 > "$@"
+
man/man7/dotfiles.7df : README.markdown man/man7/dotfiles.7df.header
cat man/man7/dotfiles.7df.header README.markdown | \
pandoc -sS -t man -o "$@"
@@ -259,6 +265,9 @@ install-less :
install -pm 0644 -- less/lesskey "$(HOME)"/.lesskey
command -v lesskey && lesskey
+install-mail :
+ install -pm 0644 -- mail/mailrc "$(HOME)"/.mailrc
+
install-maildir :
install -m 0755 -d -- \
"$(MAILDIR)"/inbox/cur \
@@ -268,7 +277,7 @@ install-maildir :
"$(MAILDIR)"/sent/new \
"$(MAILDIR)"/sent/tmp
-install-mutt : mutt/muttrc install-maildir
+install-mutt : mutt/muttrc install-mail install-maildir
install -m 0755 -d -- \
"$(HOME)"/.mutt \
"$(HOME)"/.cache/mutt