ceph/man/Makefile.am
Loic Dachary e39070fea7 man: using sphinx-1.0-build if no sphinx-build
On RHEL 6 and CentOS 6 sphinx 1.0+ which is required to build man pages
is packaged as sphinx10 instead of sphinx and the binary is
sphinx-1.0-build instead of sphinx-build.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-03 02:59:58 +02:00

29 lines
511 B
Makefile

AUTOMAKE_OPTIONS = gnu
EXTRA_DIST = conf.py
dist_man_MANS =
if ENABLE_CLIENT
include Makefile-client.am
endif
if ENABLE_SERVER
include Makefile-server.am
endif
check-local:
${SPHINX_BUILD} -b man -d doctrees . $(top_builddir)/man
# prevent `make` from running in parallel, sphinx runs better in batch mode.
.PHONY: sphinx-build.stamp
$(dist_man_MANS): sphinx-build.stamp
sphinx-build.stamp:
${SPHINX_BUILD} -Q -b man -d doctrees -c . . $(top_builddir)/man
clean-local:
@rm -f *.8
@rm -rf doctrees