2019-10-24 02:27:30 +08:00
|
|
|
mans = ['picom.1', 'picom-trans.1']
|
2019-07-25 08:17:20 +08:00
|
|
|
if get_option('with_docs')
|
2018-10-29 12:12:09 +08:00
|
|
|
a2x = find_program('a2x')
|
|
|
|
foreach m : mans
|
|
|
|
custom_target(m, output: [m], input: [m+'.asciidoc'],
|
2018-12-16 00:12:46 +08:00
|
|
|
command: [a2x, '-a',
|
2019-10-24 02:27:30 +08:00
|
|
|
'picom-version='+version,
|
2018-12-16 00:12:46 +08:00
|
|
|
'--format', 'manpage', '@INPUT@', '-D',
|
|
|
|
meson.current_build_dir()],
|
2020-07-15 00:04:45 +08:00
|
|
|
install: true, install_dir: 'share/man/man1/')
|
2018-10-29 12:12:09 +08:00
|
|
|
endforeach
|
|
|
|
endif
|