[doc/public/check-doc-coverage.sh] Make doc building needed for the test faster

We used to do a full doc build to just to run the coverage test.  That's
way too slow to expect people to run regularly.  Instead now we just do the
source code scanning part of the doc build system that is just enough to
know if all symbols are documented.

A full doc build can be done as always by invoking "make doc", and indeed
will be called as part of "make dist" or "make distcheck".
This commit is contained in:
Behdad Esfahbod 2008-09-18 15:33:10 -04:00
parent c6a7971a1e
commit d02fb0fd20
2 changed files with 7 additions and 2 deletions

View file

@ -50,11 +50,13 @@ include $(top_srcdir)/build/Makefile.am.gtk-doc
dist-hook: doc
# This line really belongs in gtk-doc.mk
$(REPORT_FILES): sgml-build.stamp
if ENABLE_GTK_DOC
check: doc
TESTS += check-doc-coverage.sh
endif
TESTS += check-doc-syntax.sh
EXTRA_DIST += check-doc-coverage.sh check-doc-syntax.sh
TESTS_ENVIRONMENT = srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" MAKE="$(MAKE) $(AM_MAKEFLAGS)"
TESTS_ENVIRONMENT = srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" MAKE="$(MAKE) $(AM_MAKEFLAGS)" DOC_MODULE="$(DOC_MODULE)" REPORT_FILES="$(REPORT_FILES)"

View file

@ -11,6 +11,9 @@ if test -z "$DOC_MODULE"; then
fi
fi
if test -n "$REPORT_FILES"; then
$MAKE $REPORT_FILES || exit 1
fi
test -z "$srcdir" && srcdir=.
stat=0