summaryrefslogtreecommitdiff
path: root/doc/cs/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cs/CMakeLists.txt')
-rw-r--r--doc/cs/CMakeLists.txt28
1 files changed, 15 insertions, 13 deletions
diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt
index 76aeb87a2..53b409b06 100644
--- a/doc/cs/CMakeLists.txt
+++ b/doc/cs/CMakeLists.txt
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/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.cs.adoc
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- COMMENT "Building weechat-headless.1 (cs)"
- )
- add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/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.cs.adoc
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
+ ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc
+ ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "Building weechat-headless.1 (cs)"
+ )
+ add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1)
+ endif()
endif()
if(ENABLE_DOC)