summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt20
1 files changed, 12 insertions, 8 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 66b92c21..58034f63 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -113,14 +113,18 @@ foreach(file ${ledger_info_files})
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}
VERBATIM)
list(APPEND ledger_doc_files ${file_base}.info)
- endif()
-
- if (BUILD_WEB_DOCS AND MAKEINFO)
- add_custom_command(OUTPUT ${file_base}.html
- COMMAND ${MAKEINFO} --force --html --no-split -o ${file_base}.html ${CMAKE_CURRENT_SOURCE_DIR}/${file}
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}
- VERBATIM)
- list(APPEND ledger_doc_files ${file_base}.html)
+ if (BUILD_WEB_DOCS)
+ add_custom_command(OUTPUT ${file_base}.html
+ COMMAND ${MAKEINFO} --force --html --no-split -o ${file_base}.html ${CMAKE_CURRENT_SOURCE_DIR}/${file}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}
+ VERBATIM)
+ list(APPEND ledger_doc_files ${file_base}.html)
+ add_custom_command(OUTPUT ${file_base}.txt
+ COMMAND ${MAKEINFO} --force --plaintext --no-split -o ${file_base}.txt ${CMAKE_CURRENT_SOURCE_DIR}/${file}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}
+ VERBATIM)
+ list(APPEND ledger_doc_files ${file_base}.txt)
+ endif()
endif()
if (TEXI2PDF AND TEX)