aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/CMakeLists.txt')
-rw-r--r--src/clients/cave/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/clients/cave/CMakeLists.txt b/src/clients/cave/CMakeLists.txt
index e471389b3..c8bdbfaa5 100644
--- a/src/clients/cave/CMakeLists.txt
+++ b/src/clients/cave/CMakeLists.txt
@@ -201,7 +201,9 @@ if(NOT USE_PREBUILT_DOCUMENTATION)
add_custom_command(OUTPUT
"${CMAKE_CURRENT_BINARY_DIR}/cave.xml"
COMMAND
- asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave.xml" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave.txt"
+ asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave.xml.tmp" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave.txt"
+ COMMAND
+ mv "${CMAKE_CURRENT_BINARY_DIR}/cave.xml.tmp" "${CMAKE_CURRENT_BINARY_DIR}/cave.xml"
DEPENDS
"${PROJECT_SOURCE_DIR}/misc/asciidoc.conf"
"${CMAKE_CURRENT_BINARY_DIR}/cave.txt")
@@ -234,7 +236,9 @@ if(NOT USE_PREBUILT_DOCUMENTATION)
add_custom_command(OUTPUT
"${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml"
COMMAND
- asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt"
+ asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml.tmp" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt"
+ COMMAND
+ mv "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml.tmp" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml"
DEPENDS
"${PROJECT_SOURCE_DIR}/misc/asciidoc.conf"
"${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt")