diff --git a/meson.build b/meson.build index b53590c3..5521f30a 100644 --- a/meson.build +++ b/meson.build @@ -134,7 +134,7 @@ endif ##################################################################### -xsltproc = find_program('xsltproc', required: get_option('man').allowed()) +xsltproc = find_program('xsltproc', required: get_option('man')) ##################################################################### @@ -159,9 +159,7 @@ subdir('src') ##################################################################### -if xsltproc.found() - subdir('man') -endif +subdir('man', if_found: xsltproc) install_data('LICENSE', 'CODING_STYLE', diff --git a/meson_options.txt b/meson_options.txt index 1b4474b5..f9486a3d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LGPL-2.1-or-later option('man', type : 'feature', - value : 'disabled', + value : 'auto', description : 'build and install man pages') option('docdir', type : 'string',