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