doc/meson.build: convert option "documentation" to Meson "feature"

This allows automatic optional detection of Sphinx.  This will be
useful when we start building the manpages with Sphinx, which many
users may want to have.
This commit is contained in:
Max Kellermann
2020-08-14 12:35:29 +02:00
parent 2bcd8516ea
commit 2e73e605f7
3 changed files with 7 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
install_man(['mpd.1', 'mpd.conf.5'])
sphinx = find_program('sphinx-build')
sphinx = find_program('sphinx-build', required: get_option('documentation'))
if not sphinx.found()
subdir_done()
endif
sphinx_output = custom_target(
'HTML documentation',
output: 'html',