Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / doc / man / 8 / CMakeLists.txt
1 set(client_srcs
2   ceph-syn.rst
3   ceph-conf.rst
4   ceph.rst
5   ceph-authtool.rst
6   ceph-kvstore-tool.rst
7   rados.rst
8   ceph-post-file.rst
9   ceph-dencoder.rst)
10
11 set(server_srcs
12   ceph-deploy.rst
13   crushtool.rst
14   ceph-run.rst
15   mount.ceph.rst
16   ceph-create-keys.rst
17   ceph-rest-api.rst)
18 if(WITH_TESTS)
19 list(APPEND server_srcs
20   ceph-debugpack.rst)
21 endif(WITH_TESTS)
22
23 set(osd_srcs
24   ceph-clsinfo.rst
25   ceph-detect-init.rst
26   ceph-disk.rst
27   ceph-volume.rst
28   ceph-volume-systemd.rst
29   ceph-osd.rst
30   osdmaptool.rst
31   ceph-bluestore-tool.rst)
32
33 set(mon_srcs
34   ceph-mon.rst
35   monmaptool.rst)
36
37 list(APPEND man_srcs
38   ${client_srcs}
39   ${server_srcs}
40   ${osd_srcs}
41   ${mon_srcs}
42   ceph-mds.rst
43   librados-config.rst)
44
45 if(HAVE_LIBFUSE)
46   list(APPEND man_srcs
47     ceph-fuse.rst
48     rbd-fuse.rst)
49 endif()
50
51 if(WITH_RADOSGW)
52   list(APPEND man_srcs
53         radosgw.rst
54         radosgw-admin.rst)
55 endif()
56
57 if(WITH_RBD)
58   list(APPEND man_srcs
59         ceph-rbdnamer.rst
60         rbd-mirror.rst
61         rbd-replay-many.rst
62         rbd-replay-prep.rst
63         rbd-replay.rst
64         rbdmap.rst
65         rbd.rst)
66   if(LINUX)
67     list(APPEND man_srcs rbd-nbd.rst)
68   endif()
69   if(FREEBSD)
70     list(APPEND man_srcs rbd-ggate.rst)
71   endif()
72 endif()
73
74 foreach(man ${man_srcs})
75   list(APPEND sphinx_input ${CMAKE_CURRENT_SOURCE_DIR}/${man})
76   # mount.ceph.rst => mount if we use
77   # get_filename_component(cmd ${man} NAME_WE)
78   string(REGEX REPLACE ".rst$" "" cmd ${man})
79   list(APPEND sphinx_output ${sphinx_output_dir}/${cmd}.8)
80   install(FILES ${sphinx_output_dir}/${cmd}.8
81     DESTINATION ${CEPH_MAN_DIR}/man8)
82 endforeach()
83
84 set(sphinx_input ${sphinx_input} PARENT_SCOPE)
85 set(sphinx_output ${sphinx_output} PARENT_SCOPE)