diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-02-21 18:55:52 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-02-21 19:28:04 +0100 |
commit | d41622674b2998e178a53fed02351ba2ae1379b8 (patch) | |
tree | d0942b88fbfa3518af13fb3cd7cd9f10b886e932 /Makefile | |
parent | 8cd66a1a8729d8ef0bce89408b0733926d258958 (diff) |
add helper script xmp2rdfxml, and make targets turtle-from-* dotgraph-from-*
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)$*/ |