aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: af1651b95f2cafef4c6c3e004fbfa8081461d0b3 (plain)
  1. ARTICLES = learn code use
  2. all: preview
  3. preview:
  4. quarto preview
  5. render:
  6. quarto render
  7. publish:
  8. rsync -avH --delete-after _site/ www-ruc@xayide.jones.dk:public_websites/thoughtroam.abcde.../
  9. tidy:
  10. bibclean -max-width 0 ref.bib > ref.bib~
  11. mv ref.bib~ ref.bib
  12. $(ARTICLES:%=screening-of-%): screening-of-%:
  13. QUARTO_LOG_LEVEL=quiet \
  14. quarto render $*/index.qmd --to man --output - | man -l -
  15. $(ARTICLES:%=wordcount-of-%): wordcount-of-%:
  16. QUARTO_LOG_LEVEL=quiet \
  17. quarto render $*/index.qmd --to plain --columns=9999 --output - \
  18. | perl -nE 'next if /^-*$$/; $$bilag += $$_ eq "Bilag 1\n"; $$chars += length unless $$bilag; END { say $$chars }'