diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f1f636..a188882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,8 @@ if (UNIX) set(TIDY_MANFILE tidy5.1) set(TIDY1XSL ../documentation/tidy1.xsl) set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml) - add_custom_target(man ALL) + set(TIDYCONFIG ../documentation/tidy-config.xml) + add_custom_target(man ALL DEPENDS "${CMAKE_BINARY_DIR}/tidy5") # run built EXE to generate xml output add_custom_command( @@ -191,6 +192,14 @@ if (UNIX) VERBATIM ) + # run built EXE to generate more xml output + add_custom_command( + TARGET man + COMMAND ${CMAKE_BINARY_DIR}/tidy5 -xml-config > ${TIDYCONFIG} + COMMENT "Generate ${TIDYHELP}" + VERBATIM + ) + # run xsltproc to generate the install files.. add_custom_command( TARGET man