meson.build 739 Bytes
Newer Older
1 2
sphinx = find_program('sphinx-build')
custom_target('man pages',
3 4 5 6 7 8 9
  command: [
    sphinx,
    '-b', 'man',
    '-D', 'version=' + version,
    '-D', 'release=' + version,
    join_paths(meson.current_source_dir(), 'man'),
    meson.current_build_dir()],
10 11 12 13 14 15 16 17 18 19 20 21 22 23
  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'
  ],
24 25 26 27 28 29
  build_by_default: true,
  install: true,
  install_dir: [
    join_paths(get_option('mandir'), 'man1'),
    join_paths(get_option('mandir'), 'man5')
  ]
30
)