diff options
Diffstat (limited to 'doc/ru/CMakeLists.txt')
-rw-r--r-- | doc/ru/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/ru/CMakeLists.txt b/doc/ru/CMakeLists.txt index 925722e48..7f604feba 100644 --- a/doc/ru/CMakeLists.txt +++ b/doc/ru/CMakeLists.txt @@ -18,29 +18,34 @@ # if(ENABLE_MAN) - # man page + # man page: weechat add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ru.adoc WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (ru)" ) add_custom_target(doc-man-weechat-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ru/man1) - # symbolic link weechat-headless.1 -> weechat.1 + # man page: weechat-headless add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 - COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1" - COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1" + COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ru.adoc + ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ru.adoc WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Creating symbolic link weechat-headless.1 (ru)" + COMMENT "Building weechat-headless.1 (ru)" ) add_custom_target(doc-man-weechat-headless-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ru/man1) |