mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 07:56:17 +00:00
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>
20 lines
338 B
Bash
Executable File
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 "$@"
|