diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,5 @@ +ARTICLES = learn code use + all: preview preview: @@ -12,3 +14,12 @@ publish: 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 }' |