aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-19 12:47:14 -0300
committerEuAndreh <eu@euandre.org>2022-10-19 12:47:14 -0300
commite5fb1012c99b241835b46655cda27d3eff481150 (patch)
tree422d460c8beb00131415416741e12eff58517f2c /Makefile
parentetc/sh/rc: Move creation of common-lisp/source to Makefile (diff)
downloaddotfiles-e5fb1012c99b241835b46655cda27d3eff481150.tar.gz
dotfiles-e5fb1012c99b241835b46655cda27d3eff481150.tar.xz
etc/sh/rc: Move generation of GPG/SSH public keys and e.list.txt to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b4642a3..5d8e2c4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,15 @@ pod2man = \
share/man/man1/z.1 \
-all: $(pod2man) $(XDG_DATA_HOME)/common-lisp/source
+derived-assets = \
+ $(pod2man) \
+ $(XDG_CONFIG_HOME)/ssh/id_rsa.pub \
+ $(XDG_DATA_HOME)/common-lisp/source \
+ $(XDG_DATA_HOME)/euandreh/e.list.txt \
+
+
+
+all: $(derived-assets)
share/man/man1/z.1: bin/z
@@ -13,3 +21,15 @@ share/man/man1/z.1: bin/z
$(XDG_DATA_HOME)/common-lisp/source:
ln -s $(SRC)/libre $@
+
+$(XDG_CONFIG_HOME)/ssh/id_rsa.pub:
+ gpg --export-ssh-key eu@euandre.org > $@
+ chmod 600 $@
+
+$(XDG_DATA_HOME)/euandreh/e.list.txt: ~/Documents/txt/ opt/aux/gen-e-list.sh
+ sh opt/aux/gen-e-list.sh > $@
+
+
+
+clean:
+ rm -f $(derived-assets)