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

    custom_target('manpage',
        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