Add deploy-docs target.

This commit is contained in:
Kyle Isom 2023-10-22 01:48:55 -07:00
parent 59e6abff06
commit d4065a9668
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ if (${DOXYGEN_FOUND})
${HEADER_FILES} ${HEADER_FILES}
ALL ALL
USE_STAMP_FILE) USE_STAMP_FILE)
add_custom_target(deploy-docs
COMMAND rsync --delete-after --progress -auvz ${CMAKE_CURRENT_BINARY_DIR}/html/* docs.shimmering-clarity.net:sites/cc/${PROJECT_NAME}/
DEPENDS emsha_docs
)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
${CMAKE_CURRENT_BINARY_DIR}/latex ${CMAKE_CURRENT_BINARY_DIR}/latex
DESTINATION share/doc/${PROJECT_NAME}/doxygen) DESTINATION share/doc/${PROJECT_NAME}/doxygen)