ntel-gpu-tools/autogen.sh
Thomas Wood 14ea2a04eb Add API documentation support
Add optional support for building API documentation using gtk-doc.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-11 17:19:47 +01:00

20 lines
338 B
Bash
Executable File

#! /bin/sh
srcdir=`dirname $0`
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 $?
$srcdir/configure "$@"