logo

blog

My website can't be that messy, right? git clone https://anongit.hacktivis.me/git/blog.git/

build.ninja (2131B)


  1. # Written by hand
  2. rule xinclude
  3. command = xmllint --xinclude --encode utf-8 --nofixup-base-uris --nsclean --output $out $in
  4. rule xslt
  5. command = xsltproc --nonet --xincludestyle --xinclude -o $out $in
  6. rule article
  7. command = xsltproc --nonet --param feedURL "'https://hacktivis.me/feed.atom'" -o $out $in
  8. rule article_fr
  9. command = xsltproc --nonet --param feedURL "'https://hacktivis.me/flux.atom'" -o $out $in
  10. rule notes_index
  11. command = ./notes_index.pm >|$out
  12. build notes/index.xhtml: notes_index ./notes | ./notes_index.pm
  13. rule dot
  14. command = dot -T$format -o$out $in
  15. rule brotli
  16. command = brotli -k -f -Z -o $out $in && touch $out
  17. rule colorscheme
  18. command = css/colorscheme.sh <$in >$out
  19. include config.ninja
  20. build bookmarks.html: xslt bookmarks.xsl bookmarks.xbel
  21. build bookmarks.html.br: brotli bookmarks.html
  22. build bookmarks.atom: xslt bookmarks.atom.xsl bookmarks.xbel
  23. build bookmarks.atom.br: brotli bookmarks.atom
  24. build feed.atom: xinclude feed.atom.in
  25. build atom.xsl: xinclude atom.xsl.in
  26. build flux.atom: xinclude flux.atom.in
  27. build atom.fr.xsl: xinclude atom.fr.xsl.in
  28. build templates/en/nav.xml: xslt templates/en/nav.xml.in | templates/en/nav.xsl
  29. build animelist.xhtml: xinclude animelist.xhtml.in | templates/en/nav.xml
  30. build animelist.xhtml.br: brotli animelist.xhtml
  31. build projects/index.xhtml: xinclude projects/index.in.xhtml | templates/en/nav.xml
  32. build images/linux-audio-output.png: dot images/linux-audio-output.dot
  33. format = png
  34. build images/linux-audio-output.svg: dot images/linux-audio-output.dot
  35. format = svg
  36. rule filter_dot
  37. command = grep -v -f $in | sed 's;Linux Audio Output APIs[^"]*;Linux Audio Output APIs (current-only);' >|$out
  38. build images/linux-audio-output-current.dot: filter_dot images/linux-audio-output-obsolete.txt images/linux-audio-output.dot
  39. build images/linux-audio-output-current.png: dot images/linux-audio-output-current.dot
  40. format = png
  41. build images/linux-audio-output-current.svg: dot images/linux-audio-output-current.dot
  42. format = svg
  43. build css/index.css: colorscheme css/index.in.css
  44. build css/mandoc.css: colorscheme css/mandoc.in.css