summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-25 21:01:34 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-25 21:02:51 +0200
commit4d50ed111ad4f3172c4c186a2ca19b638c709a70 (patch)
tree8e8bc29e2a2299c52b3ed8bec510ec42bab4894f /CMakeLists.txt
parente15c9cba43cc51fad2645a4f13ec90ed3bb739d6 (diff)
downloadxK-4d50ed111ad4f3172c4c186a2ca19b638c709a70.tar.gz
xK-4d50ed111ad4f3172c4c186a2ca19b638c709a70.tar.xz
xK-4d50ed111ad4f3172c4c186a2ca19b638c709a70.zip
Bump liberty, make use of its new asciiman.awk
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7d841c2..d316c15 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,7 +234,8 @@ install (DIRECTORY plugins/xC/
find_program (ASCIIDOCTOR_EXECUTABLE asciidoctor)
find_program (A2X_EXECUTABLE a2x)
if (NOT ASCIIDOCTOR_EXECUTABLE AND NOT A2X_EXECUTABLE)
- message (FATAL_ERROR "Neither asciidoctor nor a2x were found")
+ message (WARNING "Neither asciidoctor nor a2x were found, "
+ "falling back to a substandard manual page generator")
endif ()
foreach (page xB xC xD)
@@ -256,6 +257,13 @@ foreach (page xB xC xD)
"${PROJECT_SOURCE_DIR}/${page}.adoc"
DEPENDS ${page}.adoc
COMMENT "Generating man page for ${page}" VERBATIM)
+ else ()
+ set (ASCIIMAN ${PROJECT_SOURCE_DIR}/liberty/tools/asciiman.awk)
+ add_custom_command (OUTPUT ${page_output}
+ COMMAND env LC_ALL=C awk -f ${ASCIIMAN}
+ "${PROJECT_SOURCE_DIR}/${page}.adoc" > ${page_output}
+ DEPENDS ${page}.adoc ${ASCIIMAN}
+ COMMENT "Generating man page for ${page}" VERBATIM)
endif ()
endforeach ()