aboutsummaryrefslogtreecommitdiff
path: root/doc/meson.build
blob: 6e51e39a485a24a2121a625db831df51a99e2f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if get_option('manpage').enabled()
    asciidoctor = find_program('asciidoctor', required: true)

    custom_target('manpage',
        # list depend_files so the output can be updated if any of them are changed
        depend_files: ['smolbote.7.asciidoc', 'Usage/CommandLine.asciidoc', 'Usage/Configuration.asciidoc', 'Usage/Profile.asciidoc', 'Usage/Plugins.asciidoc', 'Usage/Filter.asciidoc'],
        input: 'smolbote.7.asciidoc',
        output: 'smolbote.7',
        command: [asciidoctor, '--backend=manpage', '--out-file=@OUTPUT@', '@INPUT@'],
        build_by_default: true,
        install: true, install_dir: join_paths(get_option('mandir'), 'man7')
    )

endif