zathura/doc/meson.build
2018-02-10 13:27:45 +01:00

24 lines
652 B
Meson

sphinx = find_program('sphinx-build')
custom_target('man pages',
command: [sphinx, '-b', 'man', join_paths(meson.current_source_dir(), 'man'), meson.current_build_dir()],
output: ['zathura.1', 'zathurarc.5'],
input: [
'man/conf.py',
'man/_bindings.txt',
'man/_commands.txt',
'man/_options.txt',
'man/_synopsis.txt',
'man/zathurarc.5.rst',
'man/_bugs.txt',
'man/_configuration.txt',
'man/_description.txt',
'man/_synctex.txt',
'man/zathura.1.rst'
],
build_by_default: true
)
install_man(
join_paths(meson.current_build_dir(), 'zathura.1'),
join_paths(meson.current_build_dir(), 'zathurarc.5')
)