summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 48ded0f..59c9cbc 100644
--- a/Makefile
+++ b/Makefile
@@ -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: