Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/InstallationHelper.cmake
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
function(install_manpage TARGET) | function(install_manpage TARGET) | ||||
set(MAN_DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") | set(MAN_DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") | ||||
set(MAN_PAGE "${CMAKE_BINARY_DIR}/doc/man/${TARGET}.1") | set(MAN_PAGE "${CMAKE_BINARY_DIR}/doc/man/${TARGET}.1") | ||||
add_custom_command( | add_custom_command( | ||||
OUTPUT "${MAN_PAGE}" | OUTPUT "${MAN_PAGE}" | ||||
COMMENT "Generating man page for ${TARGET}" | COMMENT "Generating man page for ${TARGET}" | ||||
COMMAND | COMMAND | ||||
"${CMAKE_SOURCE_DIR}/cmake/utils/run_silent.sh" | |||||
"${CMAKE_BINARY_DIR}/doc/man/gen-manpage-${TARGET}.log" | |||||
"${CMAKE_SOURCE_DIR}/doc/man/gen-manpages.sh" | "${CMAKE_SOURCE_DIR}/doc/man/gen-manpages.sh" | ||||
"$<TARGET_FILE:bitcoind>" | "$<TARGET_FILE:bitcoind>" | ||||
"$<TARGET_FILE:${TARGET}>" | "$<TARGET_FILE:${TARGET}>" | ||||
"${MAN_PAGE}" | "${MAN_PAGE}" | ||||
DEPENDS | DEPENDS | ||||
bitcoind | bitcoind | ||||
"${TARGET}" | "${TARGET}" | ||||
) | ) | ||||
deadalnix: None of this belongs here. | |||||
add_custom_target(gen-manpage-${TARGET} | add_custom_target(gen-manpage-${TARGET} | ||||
DEPENDS "${MAN_PAGE}" | DEPENDS "${MAN_PAGE}" | ||||
) | ) | ||||
set_property( | |||||
DIRECTORY "${CMAKE_SOURCE_DIR}" | |||||
APPEND PROPERTY ADDITIONAL_CLEAN_FILES "${CMAKE_BINARY_DIR}/doc/man" | |||||
) | |||||
deadalnixUnsubmitted Not Done Inline Actionsdito Especially this one. This is a good indicator that once you've put things in the wrong place, you get more and more of it over time. deadalnix: dito
Especially this one. This is a good indicator that once you've put things in the wrong… | |||||
install( | install( | ||||
FILES "${MAN_PAGE}" | FILES "${MAN_PAGE}" | ||||
DESTINATION "${MAN_DESTINATION}" | DESTINATION "${MAN_DESTINATION}" | ||||
COMPONENT manpage-${TARGET} | COMPONENT manpage-${TARGET} | ||||
EXCLUDE_FROM_ALL | EXCLUDE_FROM_ALL | ||||
) | ) | ||||
Show All 28 Lines |
None of this belongs here.