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