zathura/doc/meson.build

25 lines
637 B
Meson
Raw Normal View History

2018-11-27 20:55:16 +01:00
sphinx = find_program('sphinx-build', required: get_option('manpages'))
2018-11-25 11:16:05 +01:00
if sphinx.found()
custom_target('man pages',
command: [
sphinx,
'-b', 'man',
'-D', 'version=' + version,
'-D', 'release=' + version,
join_paths(meson.current_source_dir(), 'man'),
meson.current_build_dir()],
output: ['zathura.1', 'zathurarc.5'],
input: [
'man/conf.py',
'man/zathurarc.5.rst',
'man/zathura.1.rst'
],
build_by_default: true,
install: true,
install_dir: [
join_paths(get_option('mandir'), 'man1'),
join_paths(get_option('mandir'), 'man5')
]
)
endif