aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-04 17:06:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-04 17:06:12 +1200
commitcec773c57771480d10dc34ec80ef4ac88bea4084 (patch)
tree428f4fd0e8b1d14727bc31e79b9c657380f1e96b /Makefile
parentAdd decorate option to log config (diff)
downloaddotfiles-cec773c57771480d10dc34ec80ef4ac88bea4084.tar.gz
dotfiles-cec773c57771480d10dc34ec80ef4ac88bea4084.zip
Make sendmail(1) implementation configurable
Include it in the sendemail section of the Git config, too
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bc545823..06b87ef6 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,7 @@
NAME := Tom Ryder
EMAIL := tom@sanctum.geek.nz
KEY := 0xC14286EA77BB8872
+SENDMAIL := /usr/bin/msmtp
all : git/gitconfig gnupg/gpg.conf
@@ -64,6 +65,7 @@ clean distclean :
git/gitconfig \
gnupg/gpg.conf \
man/man7/dotfiles.7 \
+ mutt/muttrc \
tmux/tmux.conf
git/gitconfig : git/gitconfig.m4
@@ -71,6 +73,7 @@ git/gitconfig : git/gitconfig.m4
-D DOTFILES_NAME="$(NAME)" \
-D DOTFILES_EMAIL="$(EMAIL)" \
-D DOTFILES_KEY="$(KEY)" \
+ -D DOTFILES_SENDMAIL="$(SENDMAIL)" \
git/gitconfig.m4 > git/gitconfig
gnupg/gpg.conf : gnupg/gpg.conf.m4
@@ -81,6 +84,11 @@ man/man7/dotfiles.7 : README.markdown man/man7/dotfiles.7.header
cat man/man7/dotfiles.7.header README.markdown | \
pandoc -sS -t man -o "$@"
+mutt/muttrc : mutt/muttrc.m4
+ m4 \
+ -D DOTFILES_SENDMAIL="$(SENDMAIL)" \
+ mutt/muttrc.m4 > mutt/muttrc
+
TMUX_COLOR := colour237
tmux/tmux.conf : tmux/tmux.conf.m4
@@ -182,7 +190,7 @@ install-maildir :
"$(HOME)"/Mail/sent/new \
"$(HOME)"/Mail/sent/tmp
-install-mutt : install-maildir
+install-mutt : mutt/muttrc install-maildir
install -m 0755 -d -- \
"$(HOME)"/.mutt \
"$(HOME)"/.cache/mutt