]> git.proxmox.com Git - ceph.git/blob - ceph/doc/man/8/CMakeLists.txt
02655a8cd6dc5fa4153a385f935cf3da5299d917
[ceph.git] / 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 if(WITH_TESTS)
18 list(APPEND server_srcs
19 ceph-debugpack.rst)
20 endif(WITH_TESTS)
21
22 set(osd_srcs
23 ceph-clsinfo.rst
24 ceph-volume.rst
25 ceph-volume-systemd.rst
26 ceph-osd.rst
27 osdmaptool.rst
28 ceph-bluestore-tool.rst)
29
30 set(mon_srcs
31 ceph-mon.rst
32 monmaptool.rst)
33
34 list(APPEND man_srcs
35 ${client_srcs}
36 ${server_srcs}
37 ${osd_srcs}
38 ${mon_srcs}
39 ceph-mds.rst
40 librados-config.rst
41 cephadm.rst)
42
43 if(HAVE_LIBFUSE)
44 list(APPEND man_srcs
45 ceph-fuse.rst
46 rbd-fuse.rst)
47 endif()
48
49 if(WITH_RADOSGW)
50 list(APPEND man_srcs
51 radosgw.rst
52 radosgw-admin.rst)
53 endif()
54
55 if(WITH_RBD)
56 list(APPEND man_srcs
57 ceph-rbdnamer.rst
58 rbd-mirror.rst
59 rbd-replay-many.rst
60 rbd-replay-prep.rst
61 rbd-replay.rst
62 rbdmap.rst
63 rbd.rst)
64 if(LINUX)
65 list(APPEND man_srcs rbd-nbd.rst)
66 endif()
67 if(FREEBSD)
68 list(APPEND man_srcs rbd-ggate.rst)
69 endif()
70 endif()
71
72 list(APPEND man_srcs ceph-immutable-object-cache.rst)
73 foreach(man ${man_srcs})
74 list(APPEND sphinx_input ${CMAKE_CURRENT_SOURCE_DIR}/${man})
75 # mount.ceph.rst => mount if we use
76 # get_filename_component(cmd ${man} NAME_WE)
77 string(REGEX REPLACE ".rst$" "" cmd ${man})
78 list(APPEND sphinx_output ${sphinx_output_dir}/${cmd}.8)
79 install(FILES ${sphinx_output_dir}/${cmd}.8
80 DESTINATION ${CEPH_MAN_DIR}/man8)
81 endforeach()
82
83 set(sphinx_input ${sphinx_input} PARENT_SCOPE)
84 set(sphinx_output ${sphinx_output} PARENT_SCOPE)