man: hide debug-gui from the libinput.man page if disabled
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 9 Jun 2023 02:50:57 +0000 (12:50 +1000)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:23:27 +0000 (19:23 +0900)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
tools/libinput.man

index facdc76af6074e509d576e2cd7142422170f80f9..847f4dd5bd21653fa000653a53d41c2069135ca2 100644 (file)
@@ -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',
index 27ff12dc3d8de247a352dbcbe69c5b077fd85571..724551725dfc5a60e8ab512624cf23dc0a1df0bf 100644 (file)
@@ -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