Commit c18a0d44 authored by Christian Hergert's avatar Christian Hergert

help: fix get_option() to check for proper value

We want to check for help docs, not sdk docs. Also, if enabled, don't be
automatic about it. Fail hard so the caller knows there is an issue.
parent ad026244
if get_option('with_docs')
if get_option('with_help')
sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: false)
sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true)
if sphinx.found()
custom_target('en user documentation',
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
output: 'en',
build_by_default: true)
custom_target('en user documentation',
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
output: 'en',
build_by_default: true
)
install_subdir(meson.current_build_dir() + '/en', install_dir: pkgdocdir_abs)
endif
install_subdir(meson.current_build_dir() + '/en', install_dir: pkgdocdir_abs)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment