aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: beaa1f7b1624001426e7a275982c39fab73fe1f0 (plain)
  1. BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
  2. ARTICLES = learn code use
  3. all: preview
  4. preview:
  5. quarto preview
  6. render:
  7. quarto render
  8. publish:
  9. rsync -avH --delete-after _site/ www-ruc@xayide.jones.dk:public_websites/thoughtroam.abcde.../
  10. tidy:
  11. bibclean -max-width 0 ref.bib > ref.bib~
  12. mv ref.bib~ ref.bib
  13. $(ARTICLES:%=screening-of-%): screening-of-%:
  14. QUARTO_LOG_LEVEL=quiet \
  15. quarto render $*/index.qmd --to man --output - | man -l -
  16. $(ARTICLES:%=wordcount-of-%): wordcount-of-%:
  17. QUARTO_LOG_LEVEL=quiet \
  18. quarto render $*/index.qmd --to plain --columns=9999 --output - \
  19. | perl -nE 'next if /^-*$$/; $$bilag += $$_ eq "Bilag 1\n"; $$chars += length unless $$bilag; END { say $$chars }'
  20. $(ARTICLES:%=turtle-from-%): turtle-from-%: _site/%/index.pdf
  21. @bin/xmp2rdfxml _site/$*/index.pdf \
  22. | rapper -i rdfxml -o turtle - $(BASE_IRI)$*/
  23. $(ARTICLES:%=dotgraph-from-%): dotgraph-from-%: _site/%/index.pdf
  24. @bin/xmp2rdfxml _site/$*/index.pdf \
  25. | rapper -i rdfxml -o dot - $(BASE_IRI)$*/