Add gi-* man pages to the build system

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-02-13 16:17:14 +00:00
parent 66fda286e1
commit b0163afd3b

View File

@ -1,3 +1,25 @@
if get_option('man-pages').enabled()
manpages = [
'gi-compile-repository',
'gi-decompile-typelib',
]
foreach page : manpages
custom_target(page + '-man',
input: page + '.rst',
output: page + '.1',
command: [
rst2man,
rst2man_flags,
'@INPUT@',
],
capture: true,
install: true,
install_dir: man1_dir,
install_tag: 'doc',
)
endforeach
endif
if get_option('documentation') and enable_gir
expand_content_files = [
'migrating-gi.md',