virt-manager/man/meson.build
Pavel Hrdina 6a462a3f60 meson: add man pages
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-12 23:18:32 +01:00

19 lines
424 B
Meson

rst_files = files(
'virt-install.rst',
'virt-clone.rst',
'virt-xml.rst',
'virt-manager.rst',
)
rst2man_prog = find_program(['rst2man', 'rst2man.py'], required: true)
foreach rst_file : rst_files
man_page = custom_target(
input: rst_file,
output: '@BASENAME@.1',
command: [ rst2man_prog, '--strict', '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: datadir / 'man' / 'man1',
)
endforeach