From 6d5a49e22bc1c478a670de7bd91f9bb385246184 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 9 Jun 2023 12:50:57 +1000 Subject: [PATCH] man: hide debug-gui from the libinput.man page if disabled Signed-off-by: Peter Hutterer --- meson.build | 6 ++++++ tools/libinput.man | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index facdc76a..847f4dd5 100644 --- a/meson.build +++ b/meson.build @@ -976,6 +976,12 @@ if get_option('install-tests') else man_config.set('HAVE_INSTALLED_TESTS', '') endif +if get_option('debug-gui') + man_config.set('HAVE_DEBUG_GUI', '') +else + man_config.set('HAVE_DEBUG_GUI', '.\"') +endif + src_man += files( 'tools/libinput.man', 'tools/libinput-analyze.man', diff --git a/tools/libinput.man b/tools/libinput.man index 27ff12dc..72455172 100644 --- a/tools/libinput.man +++ b/tools/libinput.man @@ -35,9 +35,9 @@ Print the version and exit .TP 8 .B libinput\-debug\-events(1) Print all events as seen by libinput -.TP 8 -.B libinput\-debug\-gui(1) -Show a GUI to visualize libinput's events +@HAVE_DEBUG_GUI@.TP 8 +@HAVE_DEBUG_GUI@.B libinput\-debug\-gui(1) +@HAVE_DEBUG_GUI@Show a GUI to visualize libinput's events .TP 8 .B libinput\-debug\-tablet(1) A commandline tool to debug tablet axis values -- 2.34.1