ceph/man/Makefile.am
Kefu Chai 301fe6cbf2 doc: generate man pages in man/Makefile
* move rst files from doc/man/8 into man/8
* extract man_pages setting for sphinx from doc/conf.py to man/conf.py
* generate all man pages in `make install`
* add python-sphinx to Build-Depends
* check for sphinx-build in `configure`
* run changed rst files through sphinx-build in `make check`

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-03-24 12:36:41 +08:00

27 lines
483 B
Makefile

AUTOMAKE_OPTIONS = gnu
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