Skip to content

Commit

Permalink
Merge pull request #604 from gassmoeller/simplify_manual_target
Browse files Browse the repository at this point in the history
Only make html manual with "make manual"
  • Loading branch information
MFraters authored Feb 15, 2024
2 parents c74eec5 + 30ef061 commit 597f832
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ if(WB_BUILD_DOCUMENTATION)

add_custom_target(manual
COMMAND
${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/sphinx/_static/ ${CMAKE_CURRENT_BINARY_DIR}/sphinx/_static/ &&
${SPHINX_EXECUTABLE} -b html -c ${CMAKE_CURRENT_BINARY_DIR}/sphinx -v
${SPHINX_SOURCE} ${SPHINX_BUILD} &&
${SPHINX_EXECUTABLE} -b latex -c ${CMAKE_CURRENT_BINARY_DIR}/sphinx -v
${SPHINX_SOURCE} ${SPHINX_BUILD} && cd ${SPHINX_BUILD} && make
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/sphinx
COMMENT "Generating documentation with Sphinx")
${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target manual_html)

endif()

0 comments on commit 597f832

Please sign in to comment.