]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
man: enable warning msgs for "all" target 4291/head
authorKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2015 10:29:35 +0000 (18:29 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2015 15:26:50 +0000 (23:26 +0800)
* 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>
man/Makefile.am

index f7b4dac671decbafeb62ab47404ddffadc9ae809..ed59328ef39b5297bc79ed868578359e708dfe79 100644 (file)
@@ -12,17 +12,18 @@ if ENABLE_SERVER
 include Makefile-server.am
 endif
 
-check-local:
-       ${SPHINX_BUILD} -b man -d doctrees -c . $(top_srcdir)/doc/man $(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
 
+# in a tree populated from dist tarball, the $(top_srcdir)/doc is not included
 sphinx-build.stamp:
-       ${SPHINX_BUILD} -Q -b man -d doctrees -c . $(top_srcdir)/doc/man $(top_builddir)/man
+       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 -f *.8
        @rm -rf doctrees
+
+MAINTAINERCLEANFILES = $(dist_man_MANS)