mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Fix cleanup of existing documentation of target lwipdocs
This commit is contained in:
parent
257dc1d6fd
commit
be18fa98e4
@ -258,16 +258,11 @@ if (DOXYGEN_FOUND)
|
|||||||
message("Doxygen build started")
|
message("Doxygen build started")
|
||||||
|
|
||||||
add_custom_target(lwipdocs
|
add_custom_target(lwipdocs
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E remove_directory ${DOXYGEN_DIR}/${DOXYGEN_OUTPUT_DIR}/html
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
|
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
|
||||||
WORKING_DIRECTORY ${DOXYGEN_DIR}
|
WORKING_DIRECTORY ${DOXYGEN_DIR}
|
||||||
COMMENT "Generating API documentation with Doxygen"
|
COMMENT "Generating API documentation with Doxygen"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
||||||
# Remove old docs before generating new ones to prevent stale files
|
|
||||||
add_custom_command(TARGET lwipdocs
|
|
||||||
PRE_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove_directory ${DOXYGEN_DIR}/${DOXYGEN_OUTPUT_DIR}/html
|
|
||||||
)
|
|
||||||
else (DOXYGEN_FOUND)
|
else (DOXYGEN_FOUND)
|
||||||
message("Doxygen needs to be installed to generate the doxygen documentation")
|
message("Doxygen needs to be installed to generate the doxygen documentation")
|
||||||
endif (DOXYGEN_FOUND)
|
endif (DOXYGEN_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user