Allow building from git without gtk-doc installed

This commit is contained in:
Frédéric Péters 2012-04-23 09:23:48 +02:00
parent 952c0f552c
commit e97a36faac
4 changed files with 25 additions and 3 deletions

View File

@ -73,8 +73,15 @@ fi
echo "* Running libtoolize"
libtoolize --copy --force
echo "* Running gtkdocize"
gtkdocize --flavour no-tmpl || exit $?
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
echo "You don't have gtk-doc installed, and thus"
echo "won't be able to generate the documentation."
touch gtk-doc.make
else
echo "* Running gtkdocize"
$GTKDOCIZE --flavour no-tmpl || exit $?
fi
echo "* Running $ACLOCAL"
$ACLOCAL $ACLOCAL_FLAGS -I m4 || exit $?

View File

@ -681,7 +681,14 @@ AC_SUBST(LASSO_WSF_SUPPORT)
dnl API Reference documentation support
# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
# it on it's own line.
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK(1.9)
],[
AM_CONDITIONAL([ENABLE_GTK_DOC],[false])
])
if test "z$with_html_dir" != "z" ; then
LASSO_DOCDIR=$with_html_dir
else

View File

@ -1,4 +1,10 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = lasso-book reference
SUBDIRS = lasso-book
if ENABLE_GTK_DOC
SUBDIRS += reference
else
DIST_SUBDIRS = reference
endif

View File

@ -90,6 +90,8 @@ GTKDOC_LIBS= \
$(top_builddir)/lasso/liblasso.la \
$(LASSO_LIBS)
EXTRA_DIST =
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make