diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,5 @@ +BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/ + ARTICLES = learn code use all: preview @@ -23,3 +25,11 @@ $(ARTICLES:%=wordcount-of-%): wordcount-of-%: QUARTO_LOG_LEVEL=quiet \ quarto render $*/index.qmd --to plain --columns=9999 --output - \ | perl -nE 'next if /^-*$$/; $$bilag += $$_ eq "Bilag 1\n"; $$chars += length unless $$bilag; END { say $$chars }' + +$(ARTICLES:%=turtle-from-%): turtle-from-%: _site/%/index.pdf + @bin/xmp2rdfxml _site/$*/index.pdf \ + | rapper -i rdfxml -o turtle - $(BASE_IRI)$*/ + +$(ARTICLES:%=dotgraph-from-%): dotgraph-from-%: _site/%/index.pdf + @bin/xmp2rdfxml _site/$*/index.pdf \ + | rapper -i rdfxml -o dot - $(BASE_IRI)$*/ |