After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552822 - Add rules to create $(REPORT_FILES)
Add rules to create $(REPORT_FILES)
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.11
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-18 19:25 UTC by Behdad Esfahbod
Modified: 2008-10-03 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2008-09-18 19:25:38 UTC
In gtk-doc.mk, add:

$(REPORT_FILES): sgml-build.stamp


I use REPORT_FILES to check that cairo is 100% documented.  It's much faster to just build those instead of doing a full doc build.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-24 11:37:59 UTC
How do you use it practically?
Comment 2 Behdad Esfahbod 2008-09-24 17:05:41 UTC
$ cat check-doc-coverage.sh 
#!/bin/sh

LANG=C
if test -z "$DOC_MODULE"; then
	# extract from Makefile
	eval `grep '^DOC_MODULE' Makefile | sed 's/ //g'`
	if test -z "$DOC_MODULE"; then
		echo Failed extracting DOC_MODULE from Makefile 1>&2
		echo Try setting DOC_MODULE env var manually 1>&2
		exit 1
	fi
fi

if test -n "$REPORT_FILES"; then
	$MAKE $REPORT_FILES || exit 1
fi

test -z "$srcdir" && srcdir=.
stat=0

if test -f "$DOC_MODULE-undeclared.txt"; then
	undeclared=`cat "$DOC_MODULE-undeclared.txt"`
	if test -n "$undeclared"; then
		echo Undeclared documentation symbols: 1>&2
		cat "$DOC_MODULE-undeclared.txt" 1>&2
		stat=1
	fi
fi
if test -f "$DOC_MODULE-unused.txt"; then
	unused=`cat "$DOC_MODULE-unused.txt"`
	if test -n "$unused"; then
		echo Unused documentated symbols: 1>&2
		cat "$DOC_MODULE-unused.txt" 1>&2
		stat=1
	fi
fi
if test -f "$DOC_MODULE-undocumented.txt"; then
	if grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null &&
	   grep '^0 not documented'     "$DOC_MODULE-undocumented.txt" >/dev/null; then
		:
	else
		echo Incomplete or undocumented symbols: 1>&2
		cat "$DOC_MODULE-undocumented.txt" 1>&2
		stat=1
	fi
fi

exit $stat
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-10-03 13:11:36 UTC
2008-10-03  Stefan Kost  <ensonic@users.sf.net>

	patch by: Behdad Esfahbod <behdad@gnome.org>

	* gtk-doc.make:
	* gtk-doc.notmpl.make:
	* tests/gtk-doc.make:
	* tests/gtk-doc.notmpl.make:
	  Add rules to create $(REPORT_FILES). Fixes #552822.