2018-10-15 07:38:21 +08:00
|
|
|
mans = ['compton.1', 'compton-trans.1']
|
2018-10-29 12:12:09 +08:00
|
|
|
if get_option('build_docs')
|
|
|
|
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',
|
|
|
|
'compton-version='+version,
|
|
|
|
'--format', 'manpage', '@INPUT@', '-D',
|
|
|
|
meson.current_build_dir()],
|
2018-10-29 12:12:09 +08:00
|
|
|
install: true, install_dir: 'share/man/man1/')
|
|
|
|
endforeach
|
|
|
|
endif
|