Commit
5c9b4f3163e05f64b97d04cba2c17ef59d682830 inadvertently broke
cross builds by making Meson process the doc/misc/meson.build file even
when sphinx-build is not found in PATH. The doc/misc/meson.build file
defines targets that require a non-native executable, cfg_test, in order
to be built.
Fix by reverting to only processing the doc/misc/ subdirectory when
sphinx-build is found in PATH and moving the relevant alias_target()
method call so that the build targets depending on a non-native
executable are only defined if sphinx-build is found in PATH.
# Manpages can be build without sphinx
subdir('man')
-subdir('misc')
if not sphinx_build.found()
subdir_done()
subdir('arm')
subdir('dnssec-guide')
+subdir('misc')
### Documentation
-alias_target('doc-misc', doc_misc_targets)
-
get_release_date = '''
import os
import datetime
install_man(man_pages)
if sphinx_build.found()
+ alias_target('doc-misc', doc_misc_targets)
+
meson.add_dist_script(
'util' / 'meson-dist-package.sh',
'manual',