Let targets depend on the generate_developer-guide.xml target instead of
the developer-guide.xml output file.
Change-Id: I66106ad69c9baedbd58a008b4dbbbf93b787c2c2
Reviewed-on: https://code.wireshark.org/review/14156
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
TO_A2X_COMPATIBLE_PATH ( ${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource} _a2x_asciidocsource )
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
OUTPUT
${_output_xml}
# XXX - Output to a specific directory, e.g. wsdg_generated_src
${_src_deps}
${${_built_deps}}
)
+ add_custom_target(generate_${_output_xml} DEPENDS ${_output_xml})
unset(_src_deps)
unset(_conf_deps)
unset(_conf_opts_list)
${_STYLESHEET}
${_dbk_source}
DEPENDS
- ${_dbk_source}
+ generate_${_dbk_source}
${_dbk_dep}
#${_validated}
${_gfx_deps}
${_output}.fo
${_output}
DEPENDS
- ${_dbk_source}
+ generate_${_dbk_source}
${_dbk_dep}
${_stylesheet}
)
--nonet custom_layer_chm.xsl
${_docbook_plain_title}
DEPENDS
- ${_docbooksource}
+ generate_${_docbooksource}
${_dbk_dep}
# AsciiDoc uses UTF-8 by default, which is unsupported by HTML
# Help. We may want to render an ISO-8859-1 version, or get rid
set( ASCIIDOC_CONF_FILES asciidoc.conf asciidoctor-asciidoc.conf )
ASCIIDOC2DOCBOOK(user-guide.asciidoc ASCIIDOC_CONF_FILES WSUG_SOURCE WSUG_BUILT_DEPS)
- add_custom_target(user_guide_docbook DEPENDS user-guide.xml)
+ add_custom_target(user_guide_docbook DEPENDS generate_user-guide.xml)
set_target_properties(user_guide_docbook PROPERTIES FOLDER "Docbook")
ASCIIDOC2DOCBOOK(developer-guide.asciidoc ASCIIDOC_WSLUARM_CONF_FILES WSDG_SOURCE WSDG_BUILT_DEPS)
- add_custom_target(developer_guide_docbook DEPENDS developer-guide.xml)
+ add_custom_target(developer_guide_docbook DEPENDS generate_developer-guide.xml)
set_target_properties(developer_guide_docbook PROPERTIES FOLDER "Docbook")
# Top-level guide targets.