1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

Add a separate option for building html documentation.

This commit is contained in:
Daniel Pielmeier 2019-03-27 19:58:20 +01:00 committed by Brenden Matthews
parent 3578771f1a
commit 1fa674252d
5 changed files with 11 additions and 9 deletions

View File

@ -88,11 +88,11 @@ set(MAN_FILES doc/conky.1)
install(FILES ${DOC_FILES} DESTINATION ${DOC_PATH})
if(MAINTAINER_MODE)
if(BUILD_DOCS)
install(FILES ${HTML_FILES} DESTINATION ${HTML_PATH})
install(FILES ${MAN_FILES} DESTINATION ${MAN_PATH})
endif(MAINTAINER_MODE)
endif(BUILD_DOCS)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
install(FILES conky.desktop DESTINATION share/applications)

View File

@ -91,7 +91,9 @@ option(CHECK_CODE_QUALITY "Check code formatting/quality with clang" false)
option(RELEASE "Build release package" false)
mark_as_advanced(RELEASE)
option(MAINTAINER_MODE "Enable maintainer mode (builds docs)" false)
option(MAINTAINER_MODE "Enable maintainer mode" false)
option(BUILD_DOCS "Build documentation" false)
option(BUILD_I18N "Enable if you want internationalization support" true)
if(BUILD_I18N)

View File

@ -497,7 +497,7 @@ if(WANT_LIBXML2)
endif(WANT_LIBXML2)
# Look for doc generation programs
if(MAINTAINER_MODE)
if(BUILD_DOCS)
# Used for doc generation
find_program(APP_DB2X_XSLTPROC db2x_xsltproc)
if(NOT APP_DB2X_XSLTPROC)
@ -529,7 +529,7 @@ if(MAINTAINER_MODE)
APP_MAN
APP_SED
APP_LESS)
endif(MAINTAINER_MODE)
endif(BUILD_DOCS)
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(DEBUG true)

View File

@ -33,7 +33,7 @@
# man_MANS = conky.1
if(MAINTAINER_MODE)
if(BUILD_DOCS)
function(wrap_xsltproc)
if(NOT ARGV)
@ -96,4 +96,4 @@ if(MAINTAINER_MODE)
endfunction(wrap_man)
endif(MAINTAINER_MODE)
endif(BUILD_DOCS)

View File

@ -20,7 +20,7 @@
include(Docbook)
if(MAINTAINER_MODE)
if(BUILD_DOCS)
wrap_xsltproc(lua config_settings variables)
wrap_man(docs)
endif(MAINTAINER_MODE)
endif(BUILD_DOCS)