summaryrefslogtreecommitdiffstats
path: root/doc/meson.build
blob: b123254e2d7e436a2dedb0a48a6a1b8ec2a62787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
gomd2man = find_program('go-md2man', required: false)
if gomd2man.found()
    run_target('update-manpage',
        command: [ 'meson_build_manpages.sh', files(
            'rofi.1.markdown',
            'rofi-theme-selector.1.markdown',
            'rofi-theme.5.markdown',
            'rofi-dmenu.5.markdown',
            'rofi-debugging.5.markdown',
            'rofi-keys.5.markdown',
            'rofi-script.5.markdown',
            'rofi-sensible-terminal.1.markdown'
        )]
    )
endif

doxy_conf = configuration_data()
doxy_conf.set('PACKAGE', meson.project_name())
doxy_conf.set('VERSION', meson.project_version())
doxy_conf.set('abs_builddir', join_paths(meson.build_root(), meson.current_build_dir()))
doxy_conf.set('abs_top_srcdir', meson.source_root())

doxyfile = configure_file(
    input: 'rofi.doxy.in',
    output: 'rofi.doxy',
    configuration: doxy_conf,
)

doxygen = find_program('doxygen', required: false)
if doxygen.found()
    html_target = custom_target('doxy',
        input: doxyfile,
        output: 'html',
        command: [doxygen, doxyfile],
        install: false,
    )
endif