build.ninja (1703B)
- # Written by hand
- rule xinclude
- command = xmllint --xinclude --encode utf-8 --nofixup-base-uris --nsclean --output $out $in
- rule xslt
- command = xsltproc --nonet --xincludestyle --xinclude -o $out $in
- rule article
- command = xsltproc --nonet --param feedURL "'https://hacktivis.me/feed.atom'" -o $out $in
- rule notes_index
- command = ./notes_index.pm >|$out
- build notes/index.xhtml: notes_index ./notes | ./notes_index.pm
- rule dot
- command = dot -T$format -o$out $in
- rule brotli
- command = brotli -k -f -Z -o $out $in && touch $out
- rule colorscheme
- command = css/colorscheme.sh <$in >$out
- include config.ninja
- build bookmarks.html: xslt bookmarks.xsl bookmarks.xbel
- build bookmarks.html.br: brotli bookmarks.html
- build bookmarks.atom: xslt bookmarks.atom.xsl bookmarks.xbel
- build bookmarks.atom.br: brotli bookmarks.atom
- build feed.atom: xinclude feed.atom.in
- build atom.xsl: xinclude atom.xsl.in
- build animelist.xhtml: xinclude animelist.xhtml.in
- build images/linux-audio-output.png: dot images/linux-audio-output.dot
- format = png
- build images/linux-audio-output.svg: dot images/linux-audio-output.dot
- format = svg
- rule filter_dot
- command = grep -v -f $in | sed 's;Linux Audio Output APIs[^"]*;Linux Audio Output APIs (current-only);' >|$out
- build images/linux-audio-output-current.dot: filter_dot images/linux-audio-output-obsolete.txt images/linux-audio-output.dot
- build images/linux-audio-output-current.png: dot images/linux-audio-output-current.dot
- format = png
- build images/linux-audio-output-current.svg: dot images/linux-audio-output-current.dot
- format = svg
- build css/index.css: colorscheme css/index.in.css
- build css/mandoc.css: colorscheme css/mandoc.in.css