diff options
author | Wim Taymans <wtaymans@redhat.com> | 2018-08-30 14:49:08 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2018-08-30 14:52:45 +0200 |
commit | 1352c7555e70bbd96b43d0650b79e79c6fc0524d (patch) | |
tree | 9981c45c0a62754b2b90ef32ee1445f9430572b8 /man | |
parent | 61e4ad3b4119a45ffcae5db39548a6a315fe5301 (diff) |
man: install manpages in the right directory
Diffstat (limited to 'man')
-rw-r--r-- | man/meson.build | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/man/meson.build b/man/meson.build index 1d7045bf..6c6d13d6 100644 --- a/man/meson.build +++ b/man/meson.build @@ -7,22 +7,25 @@ manpage_conf.set('PIPEWIRE_CONFIG_DIR', pipewire_configdir) manpage_conf.set('top_srcdir', meson.source_root()) manpage_conf.set('top_builddir', meson.build_root()) -manpages = ['pipewire.1', - 'pipewire.conf.5', - 'pipewire-cli.1', - 'pipewire-monitor.1' ] +manpages = [ + [ 'pipewire', '1' ], + [ 'pipewire.conf', '5' ], + [ 'pipewire-cli', '1' ], + [ 'pipewire-monitor', '1' ] +] foreach m : manpages - infile = m + '.xml.in' - outfile = m + '.xml' + file = m.get(0) + '.' + m.get(1) + infile = file + '.xml.in' + outfile = file + '.xml' xml = configure_file(input : infile, output : outfile, configuration : manpage_conf) - custom_target(m + '.target', - output : m, + custom_target(file + '.target', + output : file, input : xml, command : [xmltoman, '@INPUT@'], capture : true, install : true, - install_dir : join_paths(get_option('mandir'), 'man1')) + install_dir : join_paths(get_option('mandir'), 'man', m.get(1))) endforeach |