From 14ea2a04ebfa287e33b69a3bc7e47f02ba93c9ed Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Tue, 11 Mar 2014 16:04:28 +0000 Subject: Add API documentation support Add optional support for building API documentation using gtk-doc. Signed-off-by: Thomas Wood Signed-off-by: Daniel Vetter --- autogen.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 354f254e..629a2575 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,6 +6,13 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir +if ! type gtkdocize > /dev/null 2>&1; then + echo "EXTRA_DIST =" > gtk-doc.make + echo "CLEANFILES =" >> gtk-doc.make +else + gtkdocize || exit $? +fi + autoreconf -v --install || exit 1 cd $ORIGDIR || exit $? -- cgit v1.2.3