mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
man: install manpages in the right directory
This commit is contained in:
parent
61e4ad3b41
commit
1352c7555e
1 changed files with 12 additions and 9 deletions
|
|
@ -7,22 +7,25 @@ manpage_conf.set('PIPEWIRE_CONFIG_DIR', pipewire_configdir)
|
||||||
manpage_conf.set('top_srcdir', meson.source_root())
|
manpage_conf.set('top_srcdir', meson.source_root())
|
||||||
manpage_conf.set('top_builddir', meson.build_root())
|
manpage_conf.set('top_builddir', meson.build_root())
|
||||||
|
|
||||||
manpages = ['pipewire.1',
|
manpages = [
|
||||||
'pipewire.conf.5',
|
[ 'pipewire', '1' ],
|
||||||
'pipewire-cli.1',
|
[ 'pipewire.conf', '5' ],
|
||||||
'pipewire-monitor.1' ]
|
[ 'pipewire-cli', '1' ],
|
||||||
|
[ 'pipewire-monitor', '1' ]
|
||||||
|
]
|
||||||
|
|
||||||
foreach m : manpages
|
foreach m : manpages
|
||||||
infile = m + '.xml.in'
|
file = m.get(0) + '.' + m.get(1)
|
||||||
outfile = m + '.xml'
|
infile = file + '.xml.in'
|
||||||
|
outfile = file + '.xml'
|
||||||
xml = configure_file(input : infile,
|
xml = configure_file(input : infile,
|
||||||
output : outfile,
|
output : outfile,
|
||||||
configuration : manpage_conf)
|
configuration : manpage_conf)
|
||||||
custom_target(m + '.target',
|
custom_target(file + '.target',
|
||||||
output : m,
|
output : file,
|
||||||
input : xml,
|
input : xml,
|
||||||
command : [xmltoman, '@INPUT@'],
|
command : [xmltoman, '@INPUT@'],
|
||||||
capture : true,
|
capture : true,
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : join_paths(get_option('mandir'), 'man1'))
|
install_dir : join_paths(get_option('mandir'), 'man', m.get(1)))
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue