mirror of
https://github.com/ceph/ceph
synced 2024-12-29 23:12:27 +00:00
31a0e0c4d8
Signed-off-by: Kefu Chai <kchai@redhat.com>
82 lines
1.4 KiB
CMake
82 lines
1.4 KiB
CMake
set(client_srcs
|
|
ceph-syn.rst
|
|
ceph-conf.rst
|
|
ceph.rst
|
|
ceph-authtool.rst
|
|
rados.rst
|
|
ceph-post-file.rst
|
|
ceph-dencoder.rst)
|
|
|
|
set(server_srcs
|
|
ceph-deploy.rst
|
|
crushtool.rst
|
|
ceph-run.rst
|
|
mount.ceph.rst
|
|
ceph-create-keys.rst
|
|
ceph-rest-api.rst
|
|
ceph-debugpack.rst)
|
|
|
|
set(osd_srcs
|
|
ceph-clsinfo.rst
|
|
ceph-detect-init.rst
|
|
ceph-disk.rst
|
|
ceph-osd.rst
|
|
osdmaptool.rst)
|
|
|
|
set(mon_srcs
|
|
ceph-mon.rst
|
|
monmaptool.rst)
|
|
|
|
list(APPEND man_srcs
|
|
${client_srcs}
|
|
${server_srcs}
|
|
${osd_srcs}
|
|
${mon_srcs}
|
|
librados-config.rst)
|
|
|
|
if(WITH_MDS)
|
|
list(APPEND man_srcs
|
|
ceph-mds.rst)
|
|
endif()
|
|
|
|
if(WITH_CEPHFS)
|
|
list(APPEND man_srcs
|
|
cephfs.rst)
|
|
endif()
|
|
|
|
if(HAVE_LIBFUSE)
|
|
list(APPEND man_srcs
|
|
ceph-fuse.rst
|
|
rbd-fuse.rst)
|
|
endif()
|
|
|
|
if(WITH_RADOSGW)
|
|
list(APPEND man_srcs
|
|
radosgw.rst
|
|
radosgw-admin.rst)
|
|
endif()
|
|
|
|
if(WITH_RBD)
|
|
list(APPEND man_srcs
|
|
ceph-rbdnamer.rst
|
|
rbd-mirror.rst
|
|
rbd-nbd.rst
|
|
rbd-replay-prep.rst
|
|
rbd-replay.rst
|
|
rbdmap.rst
|
|
rbd.rst)
|
|
endif()
|
|
|
|
foreach(man ${man_srcs})
|
|
list(APPEND sphinx_input ${CMAKE_CURRENT_SOURCE_DIR}/${man})
|
|
# mount.ceph.rst => mount if we use
|
|
# get_filename_component(cmd ${man} NAME_WE)
|
|
string(REGEX REPLACE ".rst$" "" cmd ${man})
|
|
list(APPEND sphinx_output ${sphinx_output_dir}/${cmd}.8)
|
|
install(FILES ${sphinx_output_dir}/${cmd}.8
|
|
DESTINATION ${CEPH_MAN_DIR}/man8)
|
|
endforeach()
|
|
|
|
set(sphinx_input ${sphinx_input} PARENT_SCOPE)
|
|
set(sphinx_output ${sphinx_output} PARENT_SCOPE)
|