SSH_HOST = www-ruc@xayide.jones.dk SSH_BASE_PATH = public_websites/thoughtroam.abcde.../ BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH) BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/ ARTICLES = learn code use all: preview preview: quarto preview render: quarto render publish: rsync -avH --delete-after _site/ $(BASE_SSH) cal-all: cal-fetch cal-render cal-publish cal-fetch: bin/cal-fetch.sh cal-render: bin/cal-publish.sh cal-publish: ssh $(SSH_HOST) mkdir -p $(SSH_BASE_PATH)events/ rsync -avH --delete-after $(patsubst %,events/%,$(ARTICLES) superteam) $(BASE_SSH)events/ tidy: bibclean -max-width 0 ref.bib > ref.bib~ mv ref.bib~ ref.bib $(ARTICLES:%=screening-of-%): screening-of-%: QUARTO_LOG_LEVEL=quiet \ quarto render $*/index.qmd --to man --output - | man -l - $(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)$*/