mirror of
https://github.com/ceph/ceph
synced 2024-12-20 10:23:24 +00:00
1926bb9490
* and remove `local-check` target. because we have killed all warnings, and `make check` depends on `am-all` actually. so previously, `make check` basically does nothing at all for validating the man pages' syntax. `make all` has rendered them already. * do not run sphinx-build if $(top_srcdir)/doc/man does not exist. this is exactly the case of `make install` from a dist tarball. * remove generated man pages in `make maintainer-clean` not in `make clean`, because we don't ship .rst files in the dist tarball. Signed-off-by: Kefu Chai <kchai@redhat.com>
30 lines
614 B
Makefile
30 lines
614 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
|
|
|
|
# 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)
|