diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-25 15:30:06 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-29 02:46:40 +0100 |
commit | 53cc52e320da15262179e224d99db8571c85b904 (patch) | |
tree | 703d45af9ac7f6ca0c16ead1bd699f34140913c9 /CMakeLists.txt | |
parent | cbe40093089ebf073b81a46ac30dffba7984b787 (diff) | |
download | xK-53cc52e320da15262179e224d99db8571c85b904.tar.gz xK-53cc52e320da15262179e224d99db8571c85b904.tar.xz xK-53cc52e320da15262179e224d99db8571c85b904.zip |
Add real manual pages
To some extent they duplicate the README but from a different angle.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7da0cd8..7911d5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,19 +191,21 @@ install (DIRECTORY plugins/zyklonb/ install (DIRECTORY plugins/degesch/ DESTINATION ${CMAKE_INSTALL_DATADIR}/degesch/plugins) -# Generate documentation from program help -find_program (HELP2MAN_EXECUTABLE help2man) -if (NOT HELP2MAN_EXECUTABLE) - message (FATAL_ERROR "help2man not found") +# Generate documentation from text markup +find_program (ASCIIDOCTOR_EXECUTABLE asciidoctor) +if (NOT ASCIIDOCTOR_EXECUTABLE) + message (FATAL_ERROR "asciidoctor not found") endif () foreach (page zyklonb degesch kike) set (page_output "${PROJECT_BINARY_DIR}/${page}.1") list (APPEND project_MAN_PAGES "${page_output}") add_custom_command (OUTPUT ${page_output} - COMMAND ${HELP2MAN_EXECUTABLE} -N - "${PROJECT_BINARY_DIR}/${page}" -o ${page_output} - DEPENDS ${page} + COMMAND ${ASCIIDOCTOR_EXECUTABLE} -b manpage + -a release-version=${project_version} + "${PROJECT_SOURCE_DIR}/${page}.adoc" + -o "${page_output}" + DEPENDS ${page}.adoc COMMENT "Generating man page for ${page}" VERBATIM) endforeach () |