man: move manual pages in designated sub-folder

Move the files into designated place, so they're easier to find and
reason with.

While in here, simplify the install_man() call to only include the
strings. Meson will convert them to files() and deduce the correct path
based on the file extension.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov 2024-09-30 17:26:50 +01:00 committed by Greg Kroah-Hartman
parent 25a7abcec2
commit 86373efd93
6 changed files with 1 additions and 6 deletions

View File

@ -78,12 +78,7 @@ add_project_arguments('-include', 'config.h', language : 'c')
#####################
# man page generation
#####################
mandir = join_paths(get_option('prefix'), get_option('mandir'))
man1dir = join_paths(mandir, 'man1')
man8dir = join_paths(mandir, 'man8')
install_man(files('usb-devices.1', 'lsusb.py.1'), install_dir: man1dir)
install_man(files('lsusb.8', 'usbhid-dump.8'), install_dir: man8dir)
install_man(['man/lsusb.8', 'man/lsusb.py.1', 'man/usb-devices.1', 'man/usbhid-dump.8'])
##########################