]> granicus.if.org Git - zziplib/commitdiff
need {outdir} for installation of man3/* pages
authorGuido Draheim <guidod@gmx.de>
Sun, 3 Jan 2021 18:47:57 +0000 (19:47 +0100)
committerGuido Draheim <guidod@gmx.de>
Sun, 3 Jan 2021 18:47:57 +0000 (19:47 +0100)
docs/CMakeLists.txt

index a256a8c549c4c614936853a38a31bce201520fe4..617690c3c880d284787f4a4c424fadc538dc44a2 100644 (file)
@@ -147,14 +147,14 @@ add_custom_target(docs DEPENDS doc manpages htmpages)
 add_custom_target(mans DEPENDS manpages)
 
 if(ZZIP_MANPAGES)
-add_custom_target(man ALL DEPENDS manpages)
+add_custom_target(man ALL DEPENDS manpages.tar COMMAND ${BASH} -c "ls -l manpages.tar")
 else()
-add_custom_target(man DEPENDS manpages)
+add_custom_target(man DEPENDS manpages.tar COMMAND ${BASH} -c "ls -l manpages.tar")
 endif()
 if(ZZIP_HTMPAGES)
-add_custom_target(htm ALL DEPENDS htmpages)
+add_custom_target(htm ALL DEPENDS htmpages.tar COMMAND ${BASH} -c "ls -l htmpages.tar")
 else()
-add_custom_target(htm DEPENDS htmpages)
+add_custom_target(htm DEPENDS htmpages.tar COMMAND ${BASH} -c "ls -l htmpages.tar")
 endif()
 
 # install ########################################################
@@ -186,11 +186,11 @@ add_custom_target(install-manpages
    VERBATIM)
 if(ZZIP_HTMPAGES)
    install(CODE "message(STATUS \"Installing: html pages to ${docdir}/man\")")
-   install(DIRECTORY html/ DESTINATION ${docdir}/man MESSAGE_NEVER)
+   install(DIRECTORY ${outdir}/html/ DESTINATION ${docdir}/man MESSAGE_NEVER)
 endif()
 if(ZZIP_MANPAGES)
    install(CODE "message(STATUS \"Installing: man3 pages to ${mandir}/man3\")")
-   install(DIRECTORY man3/ DESTINATION ${mandir}/man3 MESSAGE_NEVER)
+   install(DIRECTORY ${outdir}/man3/ DESTINATION ${mandir}/man3 MESSAGE_NEVER)
 endif()
 add_custom_target(install-docs DEPENDS install-manpages install-htmpages install-site)
 add_custom_target(install-mans DEPENDS install-manpages)