2024-02-20 08:14:21 -05:00
|
|
|
mans = ['picom.1', 'picom-inspect.1', 'picom-trans.1']
|
2019-07-24 20:17:20 -04:00
|
|
|
if get_option('with_docs')
|
2024-07-30 12:03:55 -04:00
|
|
|
a2x = find_program('asciidoctor')
|
2018-10-29 00:12:09 -04:00
|
|
|
foreach m : mans
|
2024-08-29 19:56:37 -04:00
|
|
|
custom_target(
|
|
|
|
m,
|
|
|
|
output: [m],
|
|
|
|
input: [m + '.adoc'],
|
|
|
|
command: [
|
|
|
|
a2x,
|
|
|
|
'-a', 'picom-version=v' + meson.project_version(),
|
|
|
|
'--backend', 'manpage',
|
|
|
|
'@INPUT@',
|
|
|
|
'-D', meson.current_build_dir(),
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
install_dir: join_paths(get_option('mandir'), 'man1'),
|
|
|
|
)
|
|
|
|
custom_target(
|
|
|
|
m + '.html',
|
|
|
|
output: [m + '.html'],
|
|
|
|
input: [m + '.adoc'],
|
|
|
|
command: [
|
|
|
|
a2x,
|
|
|
|
'-a', 'picom-version=v' + meson.project_version(),
|
|
|
|
'--backend', 'html',
|
|
|
|
'@INPUT@',
|
|
|
|
'-D', meson.current_build_dir(),
|
|
|
|
],
|
|
|
|
install_dir: get_option('datadir') / 'doc' / 'picom',
|
|
|
|
)
|
2018-10-29 00:12:09 -04:00
|
|
|
endforeach
|
|
|
|
endif
|