mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Docs: add a 'pdf' cmake target.
We still don't build or ship a PDF PuTTY manual by default, but we may as well conveniently expose Halibut's ability to do so. (I don't guarantee the resulting PDF is particularly pretty -- some of our overlong code lines do go off the right margin currently.)
This commit is contained in:
@ -109,6 +109,13 @@ if(HALIBUT AND PERL_EXECUTABLE)
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${manual_sources} ${manual_dependencies})
|
||||
list(APPEND doc_outputs puttydoc.txt)
|
||||
|
||||
# PDF. (We don't ship this; so it's only built on explicit request.)
|
||||
add_custom_command(OUTPUT putty.pdf
|
||||
COMMAND ${HALIBUT} --pdf ${manual_sources}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${manual_sources} ${manual_dependencies})
|
||||
add_custom_target(pdf DEPENDS putty.pdf)
|
||||
endif()
|
||||
|
||||
macro(register_manpage title section)
|
||||
|
Reference in New Issue
Block a user