From e846c776d9603e422c1c6ef8477ec9872ea05245 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Wed, 2 Oct 2013 11:09:48 +0100 Subject: cmake: Don't retranslate manpages when config.man changes --- man/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 50cb43c1..44958cb2 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -25,7 +25,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.man.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.man) set(common_dependencies - ${CMAKE_CURRENT_BINARY_DIR}/config.man authors.man copyright.man) @@ -156,6 +155,7 @@ foreach(manpage_source ${manpage_sources}) > "${manpage}" DEPENDS "${manpage_source_file}" ${common_dependencies} + ${CMAKE_CURRENT_BINARY_DIR}/config.man VERBATIM) install(FILES "${manpage}" DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/${manpage_path}") @@ -176,13 +176,13 @@ if(GROFFER_EXECUTABLE) set(manpages_ps ${manpages_ps} "${manpage}.ps") add_custom_command(OUTPUT "${manpage}.ps" COMMAND ${GROFFER_EXECUTABLE} -K utf8 --ps -man --to-stdout "${manpage}" > "${manpage}.ps" - DEPENDS "${manpage}" ${common_dependencies} + DEPENDS "${manpage}" ${common_dependencies} ${CMAKE_CURRENT_BINARY_DIR}/config.man VERBATIM) set(manpages_pdf ${manpages_pdf} "${manpage}.pdf") add_custom_command(OUTPUT "${manpage}.pdf" COMMAND ${GROFFER_EXECUTABLE} -K utf8 --pdf -man --to-stdout "${manpage}" > "${manpage}.pdf" - DEPENDS "${manpage}" ${common_dependencies} + DEPENDS "${manpage}" ${common_dependencies} ${CMAKE_CURRENT_BINARY_DIR}/config.man VERBATIM) endforeach(manpage) -- cgit v1.2.3