mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00

The broxygen-generated files now live in the git repo, have tests that check that they are up-to-date, and a script to re-generate them on-demand.
20 lines
648 B
CMake
20 lines
648 B
CMake
set(html_output_dir ${CMAKE_CURRENT_BINARY_DIR}/html)
|
|
|
|
add_custom_target(bro-doc-html
|
|
COMMAND sphinx-build
|
|
-b html
|
|
-c ${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${html_output_dir}
|
|
# Create symlink to the html output directory for convenience.
|
|
COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
|
${html_output_dir}
|
|
${CMAKE_BINARY_DIR}/html
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMENT "[Sphinx] Generate Bro HTML documentation in ${html_output_dir}")
|
|
|
|
if (NOT TARGET doc)
|
|
add_custom_target(doc)
|
|
endif ()
|
|
|
|
add_dependencies(doc bro-doc-html)
|