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