1sh = find_program('sh', native: true)2scdoc = dependency('scdoc', native: true)3scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true)45foreach man_src : [{'name': 'fuzzel', 'section': 1},6 {'name': 'fuzzel.ini', 'section': 5}]7 name = man_src['name']8 section = man_src['section']9 out = '@0@.@1@'.format(name, section)1011 custom_target(12 out,13 output: out,14 input: '@0@.@1@.scd'.format(name, section),15 command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())],16 capture: true,17 install: true,18 install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section)))19endforeach