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