]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: conditionally install man pages 8310/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 Mar 2016 15:46:25 +0000 (23:46 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 25 Mar 2016 16:03:19 +0000 (00:03 +0800)
this matches its counterpart in automake
* install fuse related man pages only if HAVE_LIBFUSE
* install rbd related man pages only if WITH_RBD

Signed-off-by: Kefu Chai <kchai@redhat.com>
man/CMakeLists.txt

index 523811854ebff2765339a8a9365a7317995b6ce2..59e197c825b39c6e07f624d453640fb28855d213 100644 (file)
@@ -2,7 +2,6 @@ install(FILES
        ceph-osd.8
        ceph-mds.8
        ceph-mon.8
-       ceph-fuse.8
        ceph-syn.8
        crushtool.8
        osdmaptool.8
@@ -17,17 +16,28 @@ install(FILES
        ceph-authtool.8
        rados.8
        librados-config.8
-       rbd.8
        ceph-clsinfo.8
        ceph-debugpack.8
        cephfs.8
        ceph-dencoder.8
        ceph-rest-api.8
-       ceph-rbdnamer.8
        ceph-post-file.8
+  DESTINATION ${CEPH_MAN_DIR}/man8)
+
+if(HAVE_LIBFUSE)
+  install(FILES
+       ceph-fuse.8
        rbd-fuse.8
+       DESTINATION ${CEPH_MAN_DIR}/man8)
+endif()
+
+if(WITH_RBD)
+  install(FILES
+       ceph-rbdnamer.8
        rbd-nbd.8
-       rbd-replay.8
        rbd-replay-prep.8
+       rbd-replay.8
        rbdmap.8
-  DESTINATION ${CEPH_MAN_DIR}/man8)
+       rbd.8
+       DESTINATION ${CEPH_MAN_DIR}/man8)
+endif()