summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 58034f63..ef93c293 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -170,7 +170,17 @@ if (BUILD_WEB_DOCS)
VERBATIM)
list(APPEND ledger_doc_files ledger.1.pdf)
else()
- message(FATAL_ERROR "Could not find man2html or groff. HTML version of man page cannot be built.")
+ message(WARNING "Could not find man2html or groff. HTML version of man page will not be built.")
+ endif()
+
+ if (USE_PYTHON AND Python_EXECUTABLE)
+ add_custom_command(OUTPUT ledger.html
+ COMMAND ${CMAKE_COMMAND} -E env
+ PYTHONPATH=${CMAKE_BINARY_DIR}
+ ${Python_EXECUTABLE} -m pydoc -w ledger
+ DEPENDS ${CMAKE_BINARY_DIR}/${_ledger_python_module_name}
+ VERBATIM)
+ list(APPEND ledger_doc_files ledger.html)
endif()
endif(BUILD_WEB_DOCS)