Make building the docs optional
Fixes #29 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
mans = ['compton.1', 'compton-trans.1']
|
||||
a2x = find_program('a2x')
|
||||
foreach m : mans
|
||||
custom_target(m, output: [m], input: [m+'.asciidoc'],
|
||||
command: [a2x, '--format', 'manpage', '@INPUT@',
|
||||
'-D', meson.current_build_dir()],
|
||||
install: true, install_dir: 'share/man/man1/')
|
||||
endforeach
|
||||
if get_option('build_docs')
|
||||
a2x = find_program('a2x')
|
||||
foreach m : mans
|
||||
custom_target(m, output: [m], input: [m+'.asciidoc'],
|
||||
command: [a2x, '--format', 'manpage', '@INPUT@',
|
||||
'-D', meson.current_build_dir()],
|
||||
install: true, install_dir: 'share/man/man1/')
|
||||
endforeach
|
||||
endif
|
||||
|
Reference in New Issue
Block a user