diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-31 13:28:59 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-31 13:28:59 +0200 |
commit | 261efe6299710424812faadf03905198763e3014 (patch) | |
tree | 5b7780c8a8acb366abcb17f3bd405a79b187dd32 /doc/es/CMakeLists.txt | |
parent | 9951902c7b39a1e783bc1b0f903d616de5b848d8 (diff) | |
download | weechat-261efe6299710424812faadf03905198763e3014.zip |
core: add cmake option ENABLE_MAN to compile man page (on by default)
For configure, the option is "--disable-man".
Diffstat (limited to 'doc/es/CMakeLists.txt')
-rw-r--r-- | doc/es/CMakeLists.txt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt index 03620f638..5b4e227b9 100644 --- a/doc/es/CMakeLists.txt +++ b/doc/es/CMakeLists.txt @@ -17,13 +17,17 @@ # along with WeeChat. If not, see <http://www.gnu.org/licenses/>. # -# quickstart -ADD_CUSTOM_COMMAND( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a lang=es -a toc -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.txt - DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.txt - COMMENT "Building weechat_quickstart.es.html" -) -ADD_CUSTOM_TARGET(doc-quickstart-es ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) +IF(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) + + # quickstart + ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a lang=es -a toc -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.txt + DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.txt + COMMENT "Building weechat_quickstart.es.html" + ) + ADD_CUSTOM_TARGET(doc-quickstart-es ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html) + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + +ENDIF(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) |