blueprint-compiler/docs/meson.build
James Westman 12c1c7b8d6
docs: Fix build setting
The docs need to be set to build_always_stale so you don't need to
delete the directory to rebuild them. This also means we want to disable
build_by_default.
2022-10-03 20:27:07 -05:00

11 lines
282 B
Meson

if get_option('docs')
sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true)
custom_target('docs',
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
output: 'en',
build_always_stale: true,
)
endif