mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -05:00
6a678cb4a1
Print both version number and git commit hash, not just one of either. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
33 lines
767 B
Meson
33 lines
767 B
Meson
mans = ['picom.1', 'picom-inspect.1', 'picom-trans.1']
|
|
if get_option('with_docs')
|
|
a2x = find_program('asciidoctor')
|
|
foreach m : mans
|
|
custom_target(
|
|
m,
|
|
output: [m],
|
|
input: [m + '.adoc'],
|
|
command: [
|
|
a2x,
|
|
'-a', 'picom-version=v' + meson.project_version(),
|
|
'--backend', 'manpage',
|
|
'@INPUT@',
|
|
'-D', meson.current_build_dir(),
|
|
],
|
|
install: true,
|
|
install_dir: join_paths(get_option('mandir'), 'man1'),
|
|
)
|
|
custom_target(
|
|
m + '.html',
|
|
output: [m + '.html'],
|
|
input: [m + '.adoc'],
|
|
command: [
|
|
a2x,
|
|
'-a', 'picom-version=v' + meson.project_version(),
|
|
'--backend', 'html',
|
|
'@INPUT@',
|
|
'-D', meson.current_build_dir(),
|
|
],
|
|
install_dir: get_option('datadir') / 'doc' / 'picom',
|
|
)
|
|
endforeach
|
|
endif
|