summaryrefslogtreecommitdiff
path: root/doc/fr
diff options
context:
space:
mode:
authorJan Palus <atler@pld-linux.org>2021-01-16 12:42:21 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-01-16 13:15:45 +0100
commitb142617cca9b340f1f27dfa8a78304363bef9bff (patch)
tree4122e418a95a6f638a8858da77a89c15de1d5751 /doc/fr
parent1c3cb4364d3c82a6421bb432e9bc0e4fcefbf844 (diff)
downloadweechat-b142617cca9b340f1f27dfa8a78304363bef9bff.zip
doc: don't build headless man page if headless is disabled
Diffstat (limited to 'doc/fr')
-rw-r--r--doc/fr/CMakeLists.txt28
1 files changed, 15 insertions, 13 deletions
diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt
index ec1f47578..635376382 100644
--- a/doc/fr/CMakeLists.txt
+++ b/doc/fr/CMakeLists.txt
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/fr/man1)
- # 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.fr.adoc
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- COMMENT "Building weechat-headless.1 (fr)"
- )
- add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/fr/man1)
+ 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.fr.adoc
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
+ ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc
+ ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "Building weechat-headless.1 (fr)"
+ )
+ add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/fr/man1)
+ endif()
endif()
if(ENABLE_DOC)