1asciidoc_files = ['spice_for_newbies', 2 'spice_protocol', 3 'spice_style', 4 'spice_threading_model', 5 'vd_interfaces'] 6 7if get_option('manual') 8 asciidoc = find_program('asciidoc', required : false) 9 if asciidoc.found() 10 asciidoc_args = ['-a', 'data-uri', '-a', 'icons', '-a', 'toc'] 11 foreach doc : asciidoc_files 12 custom_target('@0@.html'.format(doc), 13 input : '@0@.txt'.format(doc), 14 output : '@0@.html'.format(doc), 15 build_by_default: true, 16 command : [asciidoc, '-n', asciidoc_args, '-o', '@OUTPUT@', '@INPUT@']) 17 endforeach 18 endif 19 subdir('manual') 20endif 21