From 7ab42f9af3f18ee1a99b67c71a4914c23419edec Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 27 Mar 2025 21:25:13 +0200 Subject: [PATCH] [util] Build man pages only if docs are enabled --- util/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/meson.build b/util/meson.build index fc1a44253..6448b9881 100644 --- a/util/meson.build +++ b/util/meson.build @@ -17,7 +17,11 @@ hb_subset_cli_sources = [ # If found, invoke it on our four binaries to build man pages # If not found, just skip this step -help2man = find_program('help2man', required: false) +if not get_option('docs').disabled() + help2man = find_program('help2man', required: false) +else + help2man = disabler() +endif help2man_command = [help2man, '--help-option=--help-all', '--no-info', '--output=' + '@OUTPUT@', '@INPUT@'] util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]