llvm.org GIT mirror llvm / 00f0627
Teach add_sphinx_target() to respect the LLVM_INSTALL_TOOLCHAIN_ONLY CMake option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207450 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Liew 5 years ago
1 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
3838 add_dependencies(sphinx ${SPHINX_TARGET_NAME})
3939
4040 # Handle installation
41 if (builder STREQUAL man)
42 # FIXME: We might not ship all the tools that these man pages describe
43 install(DIRECTORY "${SPHINX_BUILD_DIR}/" # Slash indicates contents of
44 DESTINATION share/man/man1)
41 if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
42 if (builder STREQUAL man)
43 # FIXME: We might not ship all the tools that these man pages describe
44 install(DIRECTORY "${SPHINX_BUILD_DIR}/" # Slash indicates contents of
45 DESTINATION share/man/man1)
4546
46 elseif (builder STREQUAL html)
47 install(DIRECTORY "${SPHINX_BUILD_DIR}"
48 DESTINATION "share/doc/${project}")
49 else()
50 message(WARNING Installation of ${builder} not supported)
47 elseif (builder STREQUAL html)
48 install(DIRECTORY "${SPHINX_BUILD_DIR}"
49 DESTINATION "share/doc/${project}")
50 else()
51 message(WARNING Installation of ${builder} not supported)
52 endif()
5153 endif()
5254 endif()
5355 endfunction()