X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/7125b5256322f0055f19d2a478236cd69fcf64b3..60587dbefe9fb0cb479133b0a1b1a5cbdfa7fee9:/doc/man/CMakeLists.txt?ds=inline diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt index 8029513..0083f4a 100644 --- a/doc/man/CMakeLists.txt +++ b/doc/man/CMakeLists.txt @@ -8,9 +8,18 @@ if(ASCIIDOC_FOUND) COMMENT "Generating man pages with Asciidoc" VERBATIM ) -install(FILES - ${DOC_OUTPUT_PATH}/man/am7xxx-play.1 - ${DOC_OUTPUT_PATH}/man/picoproj.1 - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/") + add_custom_target(install-manpages + ${CMAKE_COMMAND} -E make_directory + "${CMAKE_INSTALL_PREFIX}/share/man/man1/" + COMMAND ${CMAKE_COMMAND} -E copy + ${DOC_OUTPUT_PATH}/man/am7xxx-play.1 + "${CMAKE_INSTALL_PREFIX}/share/man/man1/" + COMMAND ${CMAKE_COMMAND} -E copy + ${DOC_OUTPUT_PATH}/man/picoproj.1 + "${CMAKE_INSTALL_PREFIX}/share/man/man1/" + ) + add_dependencies(install-manpages manpages) + + install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} install-manpages)") endif(ASCIIDOC_FOUND)