From: Kefu Chai Date: Mon, 4 May 2015 17:57:17 +0000 (+0800) Subject: man: do not dist man pages if sphinx is not available X-Git-Tag: v9.0.0~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=156e55b7f95bb7f1d73e1131d94aca75fb339315;p=ceph.git man: do not dist man pages if sphinx is not available Signed-off-by: Kefu Chai --- diff --git a/Makefile.am b/Makefile.am index 73817e5c76f9..2e24361bfcf9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = gnu ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = autogen.sh ceph.spec.in ceph.spec install-deps.sh # the "." here makes sure check-local builds gtest and gmock before they are used -SUBDIRS = . src man +SUBDIRS = . src man doc EXTRA_DIST += \ src/test/run-cli-tests \ diff --git a/configure.ac b/configure.ac index f638f57d3d76..30c9287ffbf2 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,9 @@ if test -d ".git" ; then fi AC_MSG_NOTICE([RPM_RELEASE='$RPM_RELEASE']) +AC_CHECK_PROGS(SPHINX_BUILD, sphinx-1.0-build sphinx-build, no) +AM_CONDITIONAL(HAS_SPHINX_BUILD, test x"$SPHINX_BUILD" != "xno") + AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SUBDIRS([src/gmock]) @@ -1166,5 +1169,6 @@ AC_CONFIG_FILES([Makefile src/java/Makefile src/tracing/Makefile man/Makefile + doc/Makefile ceph.spec]) AC_OUTPUT diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 000000000000..e04e8c468f64 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,32 @@ +EXTRA_DIST = \ + man/8/ceph-authtool.rst \ + man/8/ceph-clsinfo.rst \ + man/8/ceph-conf.rst \ + man/8/ceph-debugpack.rst \ + man/8/ceph-dencoder.rst \ + man/8/ceph-deploy.rst \ + man/8/ceph-disk.rst \ + man/8/cephfs.rst \ + man/8/ceph-fuse.rst \ + man/8/ceph-mds.rst \ + man/8/ceph-mon.rst \ + man/8/ceph-osd.rst \ + man/8/ceph-post-file.rst \ + man/8/ceph-rbdnamer.rst \ + man/8/ceph-rest-api.rst \ + man/8/ceph.rst \ + man/8/ceph-run.rst \ + man/8/ceph-syn.rst \ + man/8/crushtool.rst \ + man/8/librados-config.rst \ + man/8/monmaptool.rst \ + man/8/mount.ceph.rst \ + man/8/osdmaptool.rst \ + man/8/radosgw-admin.rst \ + man/8/radosgw.rst \ + man/8/rados.rst \ + man/8/rbd-fuse.rst \ + man/8/rbd-replay-many.rst \ + man/8/rbd-replay-prep.rst \ + man/8/rbd-replay.rst \ + man/8/rbd.rst diff --git a/man/Makefile.am b/man/Makefile.am index ed59328ef39b..2298866efe6b 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = conf.py dist_man_MANS = +if HAS_SPHINX_BUILD if ENABLE_CLIENT include Makefile-client.am endif @@ -27,3 +28,4 @@ clean-local: @rm -rf doctrees MAINTAINERCLEANFILES = $(dist_man_MANS) +endif