Ronn.cmake now actually handles sections properly

This commit is contained in:
Nicholas O'Connor 2017-07-05 15:03:24 -07:00
parent d2f83c0d0f
commit 4351775a60

View File

@ -36,6 +36,9 @@ else(NOT RONN OR NOT GZIP)
macro(add_manpage_target) # this is a macro so we can call it after we've generated all our manpages macro(add_manpage_target) # this is a macro so we can call it after we've generated all our manpages
add_custom_target(man ALL DEPENDS ${manpages}) add_custom_target(man ALL DEPENDS ${manpages})
install(FILES ${manpages} DESTINATION "${MAN_INSTALL_DIR}/man${SECTION}" OPTIONAL) foreach(SECTION RANGE 1 9)
file(GLOB sectionpages RELATIVE "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/man/*.${SECTION}.gz")
install(FILES ${sectionpages} DESTINATION "${MAN_INSTALL_DIR}/man${SECTION}" OPTIONAL)
endforeach(SECTION RANGE 1 9)
endmacro(add_manpage_target) endmacro(add_manpage_target)
endif(NOT RONN OR NOT GZIP) endif(NOT RONN OR NOT GZIP)