Skip to content

Commit

Permalink
man: move manual pages in designated sub-folder
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
evelikov authored and gregkh committed Sep 30, 2024
1 parent 25a7abc commit 86373ef
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 1 addition & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'])


##########################
Expand Down

0 comments on commit 86373ef

Please sign in to comment.