diff --git a/doc/meson.build b/doc/meson.build index d0bf8857..2a97b710 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -165,30 +165,6 @@ elinkskeys_5_xml = custom_target('elinkskeys.5.xml', '-d', 'manpage', '--unsafe', '-o', '@OUTPUT@', '@INPUT@']) -elinks_1 = [] -elinks_conf_5 = [] -elinkskeys_5 = [] - -if xmlto.found() - elinks_1 = custom_target('elinks.1', - input: [], - output: 'elinks.1', - depends: elinks_1_xml, - command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinks.1.xml']) - - elinks_conf_5 = custom_target('elinks.conf.5', - input: [], - output: 'elinks.conf.5', - depends: elinks_conf_5_xml, - command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinks.conf.5.xml']) - - elinkskeys_5 = custom_target('elinkskeys.5', - input: [], - output: 'elinkskeys.5', - depends: elinkskeys_5_xml, - command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinkskeys.5.xml']) -endif - hacking_xml = custom_target('hacking.xml', input: 'hacking.txt', output: 'hacking.xml', @@ -214,6 +190,37 @@ manual_xml = custom_target('manual.xml', '-b', 'docbook', '--unsafe', '-o', '@OUTPUT@', '@INPUT@']) +elinks_1 = [] +elinks_conf_5 = [] +elinkskeys_5 = [] +manual_html_chunked = [] + +if xmlto.found() + elinks_1 = custom_target('elinks.1', + input: [], + output: 'elinks.1', + depends: elinks_1_xml, + command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinks.1.xml']) + + elinks_conf_5 = custom_target('elinks.conf.5', + input: [], + output: 'elinks.conf.5', + depends: elinks_conf_5_xml, + command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinks.conf.5.xml']) + + elinkskeys_5 = custom_target('elinkskeys.5', + input: [], + output: 'elinkskeys.5', + depends: elinkskeys_5_xml, + command: [xmlto, '-o', meson.current_build_dir(), 'man', meson.current_build_dir()+'/elinkskeys.5.xml']) + + manual_html_chunked = custom_target('manual.html-chunked', + input: [], + output: 'manual.html-chunked', + depends: manual_xml, + command: [xmlto, '-o', meson.current_build_dir() + '/manual.html-chunked', 'html', meson.current_build_dir()+'/manual.xml']) +endif + manual_pdf = [] if dblatex.found() @@ -227,6 +234,7 @@ endif txt = alias_target('txt', features_txt, keymap_actions_txt, keymap_defaults_txt) alias_target('xml', option_command_frag_xml, option_config_frag_xml, option_command_frag_xhtml, option_config_frag_xhtml, elinks_1_xml, elinks_conf_5_xml, elinkskeys_5_xml, hacking_xml, manual_xml) -alias_target('html', perl_html, perl_hooks_html, elinks_1_html, elinks_conf_5_html, elinkskeys_5_html, hacking_html, manual_html) +alias_target('html', perl_html, perl_hooks_html, elinks_1_html, elinks_conf_5_html, elinkskeys_5_html, hacking_html, manual_html, + manual_html_chunked) alias_target('pdf', manual_xml, manual_pdf) alias_target('man', elinks_1, elinks_conf_5, elinkskeys_5)