summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 37eaa73..6fb3955 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ PUBURL = public.asc
.SUFFIXES:
.SUFFIXES: .adoc .conf .snippets .indexentry .feedentry .sortdata .xml
-.SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html .links
+.SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html .links .caslinks
.SUFFIXES: .gz
.adoc.conf:
@@ -61,6 +61,11 @@ PUBURL = public.asc
.adoc.links:
mkwb links $< > $@
+.links.caslinks:
+ grep -v '^link:' $< | xargs -I_ sh -c '\
+ printf "%s\n" "_" | sha256sum | \
+ printf "%s\t%s\n" "`cut -d" " -f1`" "_"' > $@
+
all:
@@ -74,6 +79,7 @@ sources.snippets = $(sources.adoc:.adoc=.snippets)
sources.snippets.gz = $(sources.adoc:.adoc=.snippets.gz)
sources.conf = $(sources.adoc:.adoc=.conf)
sources.links = $(sources.adoc:.adoc=.links)
+sources.caslinks = $(sources.adoc:.adoc=.caslinks)
articles.indexentry = $(articles.adoc:.adoc=.indexentry)
articles.feedentry = $(articles.adoc:.adoc=.feedentry)
articles.sortdata = $(articles.adoc:.adoc=.sortdata)
@@ -137,6 +143,7 @@ derived-assets = \
$(sources.snippets) \
$(sources.snippets.gz) \
$(sources.links) \
+ $(sources.caslinks) \
$(sources.conf) \
src/dyn.conf \
src/base.conf \