aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-27 01:14:51 -0300
committerEuAndreh <eu@euandre.org>2022-10-27 01:38:45 -0300
commit0dfd2ccf8e9c5dee553ccfd88843bc724db71cbb (patch)
tree347371b19ccc80afabf2f1dccbc7609146d3682d /Makefile
parentbin/menu: Use exec over spawning new processes for "bin" action (diff)
downloaddotfiles-0dfd2ccf8e9c5dee553ccfd88843bc724db71cbb.tar.gz
dotfiles-0dfd2ccf8e9c5dee553ccfd88843bc724db71cbb.tar.xz
Remove configuration files from email programs
Generate them instead with the new mailcfg(1).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 25 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 552e7cc..b94b8bf 100644
--- a/Makefile
+++ b/Makefile
@@ -12,14 +12,18 @@ lisp-images = \
$(XDG_DATA_HOME)/lisp-cli/sbcl.image \
derived-assets = \
- $(pod2man) \
- $(XDG_CONFIG_HOME)/ssh/id_rsa.pub \
- $(XDG_DATA_HOME)/common-lisp/source \
- $(XDG_DATA_HOME)/euandreh/e.list.txt \
+ $(pod2man) \
+ $(XDG_CONFIG_HOME)/ssh/id_rsa.pub \
+ $(XDG_CONFIG_HOME)/alot/config \
+ $(XDG_CONFIG_HOME)/mbsync/config \
+ $(XDG_CONFIG_HOME)/msmtp/config \
+ $(XDG_CONFIG_HOME)/notmuch/default/config \
+ $(XDG_CONFIG_HOME)/notmuch/default/hooks/post-new \
+ $(XDG_DATA_HOME)/common-lisp/source \
+ $(XDG_DATA_HOME)/euandreh/e.list.txt \
$(lisp-images)
-
all: $(derived-assets)
@@ -32,6 +36,22 @@ share/man/man1/z.1: bin/z
$(XDG_DATA_HOME)/common-lisp/source:
ln -s $(SRC)/libre $@
+$(XDG_CONFIG_HOME)/alot/config: bin/mailcfg
+ mailcfg alot > $@
+
+$(XDG_CONFIG_HOME)/mbsync/config: bin/mailcfg
+ mailcfg mbsync > $@
+
+$(XDG_CONFIG_HOME)/msmtp/config: bin/mailcfg
+ mailcfg msmtp > $@
+
+$(XDG_CONFIG_HOME)/notmuch/default/config: bin/mailcfg
+ mailcfg notmuchcfg > $@
+
+$(XDG_CONFIG_HOME)/notmuch/default/hooks/post-new: bin/mailcfg
+ mailcfg notmuchhook > $@
+ chmod +x $@
+
$(XDG_CONFIG_HOME)/ssh/id_rsa.pub:
gpg --export-ssh-key eu@euandre.org > $@
chmod 600 $@