summaryrefslogtreecommitdiff
path: root/doc/pl
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/pl
parent1c3cb4364d3c82a6421bb432e9bc0e4fcefbf844 (diff)
downloadweechat-b142617cca9b340f1f27dfa8a78304363bef9bff.zip
doc: don't build headless man page if headless is disabled
Diffstat (limited to 'doc/pl')
-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)