2009-10-09 12:19:32 -04:00
|
|
|
#
|
2018-01-04 18:54:18 -05:00
|
|
|
# Copyright (C) 2003-2018 Sébastien Helleu <flashcode@flashtux.org>
|
2010-06-22 13:46:28 -04: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 12:19:32 -04: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 13:46:28 -04:00
|
|
|
# WeeChat is distributed in the hope that it will be useful,
|
2009-10-09 12:19:32 -04: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 17:16:07 -05:00
|
|
|
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
2009-10-09 12:19:32 -04:00
|
|
|
#
|
|
|
|
|
2015-01-15 15:37:52 -05:00
|
|
|
if(ENABLE_MAN)
|
2018-03-19 14:38:44 -04:00
|
|
|
# man page: weechat
|
2015-01-15 15:37:52 -05:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
|
2016-05-15 02:52:19 -04:00
|
|
|
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
|
2015-01-15 15:37:52 -05:00
|
|
|
DEPENDS
|
2016-05-15 02:52:19 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc
|
2018-03-19 14:38:44 -04:00
|
|
|
${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
|
2015-01-15 15:37:52 -05:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMENT "Building weechat.1 (ru)"
|
|
|
|
)
|
2018-03-11 04:59:39 -04:00
|
|
|
add_custom_target(doc-man-weechat-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
|
2015-01-15 15:37:52 -05:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ru/man1)
|
2018-03-11 04:59:39 -04:00
|
|
|
|
2018-03-19 14:38:44 -04:00
|
|
|
# man page: weechat-headless
|
2018-03-11 04:59:39 -04:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
|
2018-03-19 14:38:44 -04:00
|
|
|
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc
|
2018-03-11 04:59:39 -04:00
|
|
|
DEPENDS
|
2018-03-19 14:38:44 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc
|
2018-03-11 04:59:39 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc
|
2018-03-19 14:38:44 -04:00
|
|
|
${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
|
2018-03-11 04:59:39 -04:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
2018-03-19 14:38:44 -04:00
|
|
|
COMMENT "Building weechat-headless.1 (ru)"
|
2018-03-11 04:59:39 -04:00
|
|
|
)
|
2018-03-11 14:45:29 -04:00
|
|
|
add_custom_target(doc-man-weechat-headless-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
|
2018-03-11 04:59:39 -04:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ru/man1)
|
2015-01-15 15:37:52 -05:00
|
|
|
endif()
|
|
|
|
|
2016-05-03 15:31:55 -04:00
|
|
|
if(ENABLE_DOC)
|
2013-07-31 07:28:59 -04:00
|
|
|
|
|
|
|
# quickstart
|
2014-04-12 12:00:27 -04:00
|
|
|
add_custom_command(
|
2013-07-31 07:28:59 -04:00
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html
|
2016-05-15 02:52:19 -04:00
|
|
|
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.ru.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc
|
2013-07-31 07:28:59 -04:00
|
|
|
DEPENDS
|
2016-05-03 15:31:55 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
|
2016-05-15 02:52:19 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc
|
2015-01-12 15:53:34 -05:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
2013-07-31 07:28:59 -04:00
|
|
|
COMMENT "Building weechat_quickstart.ru.html"
|
|
|
|
)
|
2014-04-12 12:00:27 -04:00
|
|
|
add_custom_target(doc-quickstart-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
|
2013-07-31 07:28:59 -04:00
|
|
|
|
2014-04-12 12:00:27 -04:00
|
|
|
endif()
|