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