docdir = get_option('datadir') / 'doc' doxygen = find_program('doxygen', required: get_option('docs')) dox_to_sphinx = files('../scripts/dox_to_sphinx.py') sphinx_build = find_program('sphinx-build', required: get_option('docs')) build_docs = doxygen.found() and sphinx_build.found() if build_docs subdir('c') endif if not meson.is_subproject() summary('Documentation', build_docs, bool_yn: true) endif