This commit is contained in:
Jim Derry 2015-03-08 15:39:48 +08:00
parent 3df5b60ca1
commit e0833dc8ab

View file

@ -181,7 +181,8 @@ if (UNIX)
set(TIDY_MANFILE tidy5.1) set(TIDY_MANFILE tidy5.1)
set(TIDY1XSL ../documentation/tidy1.xsl) set(TIDY1XSL ../documentation/tidy1.xsl)
set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml) 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 # run built EXE to generate xml output
add_custom_command( add_custom_command(
@ -191,6 +192,14 @@ if (UNIX)
VERBATIM 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.. # run xsltproc to generate the install files..
add_custom_command( add_custom_command(
TARGET man TARGET man