ceph/man/Makefile.am
Kefu Chai 5b2357e663 configure.ac: add an option: --with-man-pages
* do not require sphinx-build if --without-man-pages
* dist rst files for man pages
* build and dist .8 files if sphinx-build is found

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-06 10:17:42 +08:00

32 lines
638 B
Makefile

AUTOMAKE_OPTIONS = gnu
EXTRA_DIST = conf.py
dist_man_MANS =
if WITH_MAN_PAGES
if ENABLE_CLIENT
include Makefile-client.am
endif
if ENABLE_SERVER
include Makefile-server.am
endif
# prevent `make` from running in parallel, sphinx runs better in batch mode.
.PHONY: sphinx-build.stamp
$(dist_man_MANS): sphinx-build.stamp
# in a tree populated from dist tarball, the $(top_srcdir)/doc is not included
sphinx-build.stamp:
if [ -d $(top_srcdir)/doc/man ] ; then \
${SPHINX_BUILD} -b man -d doctrees -c . $(top_srcdir)/doc/man $(top_builddir)/man; \
fi
clean-local:
@rm -rf doctrees
MAINTAINERCLEANFILES = $(dist_man_MANS)
endif