man: hide debug-gui from the libinput.man page if disabled

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2023-06-09 12:50:57 +10:00
parent 9a3429f4af
commit 83144a0edc
2 changed files with 9 additions and 3 deletions

View 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',

View 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