logo

blog

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

build.ninja (1703B)


  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 notes_index
  9. command = ./notes_index.pm >|$out
  10. build notes/index.xhtml: notes_index ./notes | ./notes_index.pm
  11. rule dot
  12. command = dot -T$format -o$out $in
  13. rule brotli
  14. command = brotli -k -f -Z -o $out $in && touch $out
  15. rule colorscheme
  16. command = css/colorscheme.sh <$in >$out
  17. include config.ninja
  18. build bookmarks.html: xslt bookmarks.xsl bookmarks.xbel
  19. build bookmarks.html.br: brotli bookmarks.html
  20. build bookmarks.atom: xslt bookmarks.atom.xsl bookmarks.xbel
  21. build bookmarks.atom.br: brotli bookmarks.atom
  22. build feed.atom: xinclude feed.atom.in
  23. build atom.xsl: xinclude atom.xsl.in
  24. build animelist.xhtml: xinclude animelist.xhtml.in
  25. build images/linux-audio-output.png: dot images/linux-audio-output.dot
  26. format = png
  27. build images/linux-audio-output.svg: dot images/linux-audio-output.dot
  28. format = svg
  29. rule filter_dot
  30. command = grep -v -f $in | sed 's;Linux Audio Output APIs[^"]*;Linux Audio Output APIs (current-only);' >|$out
  31. build images/linux-audio-output-current.dot: filter_dot images/linux-audio-output-obsolete.txt images/linux-audio-output.dot
  32. build images/linux-audio-output-current.png: dot images/linux-audio-output-current.dot
  33. format = png
  34. build images/linux-audio-output-current.svg: dot images/linux-audio-output-current.dot
  35. format = svg
  36. build css/index.css: colorscheme css/index.in.css
  37. build css/mandoc.css: colorscheme css/mandoc.in.css