1 if get_option('gui').enabled()
4 jack_mixer_man = 'jack_mixer.1'
5 jack_mix_box_man = 'jack_mix_box.1'
7 rst2man = find_program('rst2man', 'rst2man.py', required: false)
9 if fs.exists(jack_mixer_man)
10 install_man(jack_mixer_man)
12 jack_mixer_man_rst_in = 'jack_mixer.1.rst.in'
14 jack_mixer_man_rst = configure_file(
15 input: jack_mixer_man_rst_in,
16 output: 'jack_mixer.1.rst',
18 'VERSION': meson.project_version()
22 jack_mixer_troff = custom_target(
24 output: jack_mixer_man,
25 input: jack_mixer_man_rst,
26 command: [rst2man, '@INPUT@', '@OUTPUT@'],
28 install_dir: join_paths(get_option('mandir'), 'man1')
31 error('Pre-generated file \'@0@\' and \'rst2man\' not found.\n'.format(jack_mixer_man) +
32 'Please install \'docutils\' from https://pypi.org/project/docutils.')
35 if fs.exists(jack_mix_box_man)
36 install_man(jack_mix_box_man)
38 jack_mix_box_man_rst_in = 'jack_mix_box.1.rst.in'
40 jack_mix_box_man_rst = configure_file(
41 input: jack_mix_box_man_rst_in,
42 output: 'jack_mix_box.1.rst',
44 'VERSION': meson.project_version()
48 jack_mix_box_troff = custom_target(
49 'jack_mix_box_rst2man',
50 output: jack_mix_box_man,
51 input: jack_mix_box_man_rst,
52 command: [rst2man, '@INPUT@', '@OUTPUT@'],
54 install_dir: join_paths(get_option('mandir'), 'man1')
58 meson.add_dist_script('meson_dist_rst2man.py', jack_mixer_man, jack_mix_box_man)