./: {bitshift/ tests/} doc{README.md} legal{LICENSE} manifest

# Don't install tests.
#
tests/: install = false

define doxyfile: file
doxyfile{*}: extension = ""
doxyfile{*}: in.substitution = lax

doxyfile{Doxyfile}: in{Doxyfile} $src_root/manifest
{
  PROJECT_BRIEF = "BitShift Validate API Reference Documentation"
  OUTPUT_DIRECTORY = "$out_root/docs"
  INTERNAL = "NO"
  HTML_COLORSTYLE_HUE = 220
  HTML_COLORSTYLE_GAMMA = 140
}

./: fsdir{$out_root/docs}

fsdir{$out_root/docs}:
% clean
{{
  rm -rf $out_root/docs
}}

alias{docs}: doxyfile{Doxyfile} fsdir{$out_root/docs}
{{
  diag doxygen $path($<[0])
  doxygen $path($<[0])
}}
