diff options
author | EuAndreh <eu@euandre.org> | 2025-04-04 17:14:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-04 17:14:35 -0300 |
commit | 9b6f1418b1c92b71ff785ea30f1a98edeef0009e (patch) | |
tree | 040ce874cf7ae5ef3075349ea689474df1bd6f69 /Makefile | |
parent | Makefile: Indent "touch" with "gzip" (diff) | |
download | euandre.org-9b6f1418b1c92b71ff785ea30f1a98edeef0009e.tar.gz euandre.org-9b6f1418b1c92b71ff785ea30f1a98edeef0009e.tar.xz |
Makefile: Add $(PUBURL) variable
Diffstat (limited to '')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -19,6 +19,7 @@ EXEC = ./ ## Where to store the installation. Empty by default. DESTDIR = LDLIBS = +PUBURL = public.asc @@ -159,7 +160,7 @@ side-assets = \ ## Default target. Builds all artifacts required for testing ## and installation. all: $(derived-assets) -all: src/content/public.asc +all: src/content/$(PUBURL) $(derived-assets): Makefile deps.mk @@ -183,7 +184,7 @@ $(sources.snippets.gz): if [ -s $* ]; then gzip -9fk `cat $*`; fi sed 's/$$/.gz/' $* > $@ -src/content/public.asc: +src/content/$(PUBURL): gpg --export --armour "`jq -r '.email' < meta.json`" > $@ email.txt: meta.json @@ -192,9 +193,9 @@ email.txt: meta.json baseurl.txt: meta.json jq -r '.baseurl' < meta.json > $@ -expiry.txt: src/content/public.asc +expiry.txt: src/content/$(PUBURL) gpg --always-trust --no-keyring --show-key --with-colons \ - src/content/public.asc | \ + src/content/$(PUBURL) | \ awk -F: '/^pub:/ { print $$7 }' | \ xargs -I% date -Is -d@% > $@ @@ -208,7 +209,7 @@ src/content/.well-known/security.txt: email.txt baseurl.txt expiry.txt mkdir -p $(@D) printf 'Contact: mailto:%s\n' "`cat email.txt`" > $@ printf 'Expires: %s\n' "`cat expiry.txt`" >> $@ - printf 'Encryption: %s/public.asc\n' "`cat baseurl.txt`" >> $@ + printf 'Encryption: %s/$(PUBURL)\n' "`cat baseurl.txt`" >> $@ printf 'Preferred-Languages: en, pt, fr, eo, es\n' >> $@ src/sources.txt: |