From b1319d663fb3eab13c7031433e5c6aafe884b1a8 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 31 Jul 2026 14:50:01 +0200 Subject: [PATCH] doc: Build the manpage as part of the default target The manpage target wasn't in ALL, so a plain `ninja` never generated icemon.1 and `ninja install` failed on the missing file. --- doc/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cfe3ec5..0fc9e2e 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -14,13 +14,12 @@ set_package_properties(pandoc PROPERTIES ) if (pandoc_FOUND) - add_custom_target(manpage) + add_custom_target(manpage ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/icemon.1) add_custom_command( - TARGET manpage + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/icemon.1 COMMAND ${pandoc_EXECUTABLE} -s -t man ${CMAKE_CURRENT_SOURCE_DIR}/icemon.md -o ${CMAKE_CURRENT_BINARY_DIR}/icemon.1 - MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/icemon.md - BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/icemon.1) + MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/icemon.md) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/icemon.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)