summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-24 12:37:50 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-24 12:47:35 +0200
commit3414238a1080d492d350ae1f245cc2777b2daf08 (patch)
treefeff5bf25dd6b11f01d074cd6d8fe45e29b34d83 /doc
parent14b90d8d952b40e0a474223e7f74a1e6505d5450 (diff)
downloadfork-ledger-3414238a1080d492d350ae1f245cc2777b2daf08.tar.gz
fork-ledger-3414238a1080d492d350ae1f245cc2777b2daf08.tar.bz2
fork-ledger-3414238a1080d492d350ae1f245cc2777b2daf08.zip
doc: Generate PDF version of ledger manpage
when building web docs
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 9a4a728d..66b92c21 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -160,6 +160,11 @@ if (BUILD_WEB_DOCS)
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ledger.1
VERBATIM)
list(APPEND ledger_doc_files ledger.1.html)
+ add_custom_command(OUTPUT ledger.1.pdf
+ COMMAND ${BASH} -c "${_cmd} -mandoc -Tpdf ${CMAKE_CURRENT_SOURCE_DIR}/ledger.1 > ledger.1.pdf"
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ledger.1
+ 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.")
endif()