spice-common/docs/meson.build
Marc-André Lureau 57f2c61712 build-sys: improve asciidoc rules to allow multiple targets
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-01-15 17:35:58 +04:00

13 lines
444 B
Meson

if get_option('manual')
asciidoc = find_program('asciidoc', required : false)
if asciidoc.found()
foreach f: ['spice_protocol.txt']
custom_target('HTML for @0@'.format(f),
input : f,
output : '@BASENAME@.html',
build_by_default : true,
command : [asciidoc, '-n', '-a', 'icons', '-a', 'toc', '-o', '@OUTPUT@', '@INPUT@'])
endforeach
endif
endif