diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-24 12:38:25 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-24 12:47:37 +0200 |
commit | 209f6f4a52c923ce8424a0ffcc57cbf0c1a25aea (patch) | |
tree | bc8f11b3db1c7e42fb7558d11259403c3f77c74d /doc | |
parent | 3414238a1080d492d350ae1f245cc2777b2daf08 (diff) | |
download | fork-ledger-209f6f4a52c923ce8424a0ffcc57cbf0c1a25aea.tar.gz fork-ledger-209f6f4a52c923ce8424a0ffcc57cbf0c1a25aea.tar.bz2 fork-ledger-209f6f4a52c923ce8424a0ffcc57cbf0c1a25aea.zip |
doc: Generate plain text version of ledger manual
when building web docs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 20 |
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) |