summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-12-04 14:57:20 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-12-04 15:00:35 +0000
commitf23090a615bf829c4e3554da3ef4a12266fb5477 (patch)
tree600ab55bda7432f5293f0dd82a35e3f1b9f61bd2 /autogen.sh
parent1647c85d6f841ea11ead214529f508c4ec69f966 (diff)
downloadflatpak-f23090a615bf829c4e3554da3ef4a12266fb5477.tar.gz
Generate the API reference for libxdg-app
We use the good old gtk-doc.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 619802ee..46433bea 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -24,6 +24,21 @@ fi
# Workaround automake bug with subdir-objects and computed paths
sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
+GTKDOCIZE=$(which gtkdocize 2>/dev/null)
+if test -z $GTKDOCIZE; then
+ echo "*** You don't have gtk-doc installed, and thus won't be able to generate the documentation. ***"
+ rm -f gtk-doc.make
+ cat > gtk-doc.make <<EOF
+EXTRA_DIST =
+CLEANFILES =
+EOF
+else
+ # gtkdocize needs the macro directory to exist before
+ # we call autoreconf
+ mkdir m4
+ gtkdocize || exit $?
+fi
+
autoreconf --force --install --verbose || exit $?
cd "$olddir"