2009-10-09 18:19:32 +02:00
|
|
|
#
|
2021-01-02 21:34:16 +01:00
|
|
|
# Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
|
2010-06-22 19:46:28 +02:00
|
|
|
#
|
|
|
|
# This file is part of WeeChat, the extensible chat client.
|
|
|
|
#
|
|
|
|
# WeeChat is free software; you can redistribute it and/or modify
|
2009-10-09 18:19:32 +02:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2010-06-22 19:46:28 +02:00
|
|
|
# WeeChat is distributed in the hope that it will be useful,
|
2009-10-09 18:19:32 +02:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2018-11-29 23:16:07 +01:00
|
|
|
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
2009-10-09 18:19:32 +02:00
|
|
|
#
|
|
|
|
|
2015-01-15 21:37:52 +01:00
|
|
|
if(ENABLE_MAN)
|
2018-03-19 19:38:44 +01:00
|
|
|
# man page: weechat
|
2015-01-15 21:37:52 +01:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
|
2016-05-15 08:52:19 +02:00
|
|
|
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
|
2015-01-15 21:37:52 +01:00
|
|
|
DEPENDS
|
2016-05-15 08:52:19 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
|
2020-05-02 15:13:13 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ru.adoc
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ru.adoc
|
2015-01-15 21:37:52 +01:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMENT "Building weechat.1 (ru)"
|
|
|
|
)
|
2018-03-11 09:59:39 +01:00
|
|
|
add_custom_target(doc-man-weechat-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
|
2015-01-15 21:37:52 +01:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ru/man1)
|
2018-03-11 09:59:39 +01:00
|
|
|
|
2021-01-16 12:42:21 +01:00
|
|
|
if(ENABLE_HEADLESS)
|
|
|
|
# man page: weechat-headless
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/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-headless.1.ru.adoc
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ru.adoc
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ru.adoc
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
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)
|
|
|
|
endif()
|
2015-01-15 21:37:52 +01:00
|
|
|
endif()
|
|
|
|
|
2016-05-03 21:31:55 +02:00
|
|
|
if(ENABLE_DOC)
|
2013-07-31 13:28:59 +02:00
|
|
|
|
|
|
|
# quickstart
|
2014-04-12 18:00:27 +02:00
|
|
|
add_custom_command(
|
2013-07-31 13:28:59 +02:00
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html
|
2016-05-15 08:52:19 +02:00
|
|
|
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.ru.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc
|
2013-07-31 13:28:59 +02:00
|
|
|
DEPENDS
|
2016-05-03 21:31:55 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
|
2016-05-15 08:52:19 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc
|
2015-01-12 21:53:34 +01:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
2013-07-31 13:28:59 +02:00
|
|
|
COMMENT "Building weechat_quickstart.ru.html"
|
|
|
|
)
|
2014-04-12 18:00:27 +02:00
|
|
|
add_custom_target(doc-quickstart-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html)
|
2020-04-01 00:56:25 -04:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
|
2013-07-31 13:28:59 +02:00
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
endif()
|