mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 04:06:03 +00:00
Add a separate option for building html documentation.
This commit is contained in:
parent
3578771f1a
commit
1fa674252d
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user