This commit is contained in:
Jim Derry 2015-03-08 15:39:48 +08:00
parent 3df5b60ca1
commit e0833dc8ab
1 changed files with 10 additions and 1 deletions

View File

@ -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