mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix installing man pages from our tarballs.
As of the cyclic-dependency fix in b01173c6b7, building from our tarball using the instructions in its README (using the source tree as build tree), in the absence of Halibut, would lead to the pre-built man pages not being installed. (Also, a load of "Could not build man page" complaints at cmake generation time, which is how I actually noticed.)
This commit is contained in:
parent
2222cd104d
commit
68c97fb22a
@ -140,12 +140,17 @@ macro(manpage title section)
|
|||||||
DEPENDS
|
DEPENDS
|
||||||
mancfg.but man-${title}.but)
|
mancfg.but man-${title}.but)
|
||||||
register_manpage(${title} ${section})
|
register_manpage(${title} ${section})
|
||||||
elseif(NOT (DOCBUILDDIR STREQUAL DOCSRCDIR)
|
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section})
|
||||||
AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section})
|
# Our tarballs include prebuilt man pages in the source tree, so
|
||||||
add_custom_command(OUTPUT ${title}.${section}
|
# they can be installed from there even if Halibut isn't available.
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
if(NOT (DOCBUILDDIR STREQUAL DOCSRCDIR))
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section} ${title}.${section}
|
# Iff the build tree isn't the source tree, they'll need copying
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section})
|
# to the build tree first.
|
||||||
|
add_custom_command(OUTPUT ${title}.${section}
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section} ${title}.${section}
|
||||||
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${title}.${section})
|
||||||
|
endif()
|
||||||
register_manpage(${title} ${section})
|
register_manpage(${title} ${section})
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user