Make building the docs optional
Fixes #29 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
50e2259404
commit
06d879251b
|
@ -1,8 +1,10 @@
|
||||||
mans = ['compton.1', 'compton-trans.1']
|
mans = ['compton.1', 'compton-trans.1']
|
||||||
a2x = find_program('a2x')
|
if get_option('build_docs')
|
||||||
foreach m : mans
|
a2x = find_program('a2x')
|
||||||
custom_target(m, output: [m], input: [m+'.asciidoc'],
|
foreach m : mans
|
||||||
command: [a2x, '--format', 'manpage', '@INPUT@',
|
custom_target(m, output: [m], input: [m+'.asciidoc'],
|
||||||
'-D', meson.current_build_dir()],
|
command: [a2x, '--format', 'manpage', '@INPUT@',
|
||||||
install: true, install_dir: 'share/man/man1/')
|
'-D', meson.current_build_dir()],
|
||||||
endforeach
|
install: true, install_dir: 'share/man/man1/')
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
|
@ -9,3 +9,5 @@ option('opengl', type: 'boolean', value: true, description: 'Enable features tha
|
||||||
option('dbus', type: 'boolean', value: true, description: 'Enable suport for D-Bus remote control')
|
option('dbus', type: 'boolean', value: true, description: 'Enable suport for D-Bus remote control')
|
||||||
|
|
||||||
option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
|
option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
|
||||||
|
|
||||||
|
option('build_docs', type: 'boolean', value: false, description: 'Build documentation and man pages')
|
||||||
|
|
Loading…
Reference in New Issue