2008-07-17 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Thu, 17 Jul 2008 12:21:01 +0000 (12:21 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Thu, 17 Jul 2008 12:21:01 +0000 (12:21 +0000)
Bug 1047 -  API documentation from release tarball is not
            installed by "make install"

* configure.ac:
* Makefile.am: Make the recursion into the documentation
directory depend on on whether we explicitly enable it or
if we are not inside an SVN checkout.

ChangeLog
Makefile.am
configure.ac

index e079a67..98e70c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-07-17  Emmanuele Bassi  <ebassi@openedhand.com>
+
+       Bug 1047 -  API documentation from release tarball is not
+                   installed by "make install"
+
+       * configure.ac:
+       * Makefile.am: Make the recursion into the documentation
+       directory depend on on whether we explicitly enable it or
+       if we are not inside an SVN checkout.
+
 2008-07-17  Neil Roberts  <neil@o-hand.com>
 
        * clutter/clutter-texture.c: 
index d9490f3..fb6b7fa 100644 (file)
@@ -2,7 +2,7 @@ NULL =
 
 SUBDIRS = clutter tests po
 
-if ENABLE_GTK_DOC
+if BUILD_GTK_DOC
 SUBDIRS += doc
 endif
 
index 052e877..80a87b7 100644 (file)
@@ -587,6 +587,17 @@ dnl = GTK Doc check ========================================================
 
 GTK_DOC_CHECK([1.8])
 
+# we don't want to build the documentation from a SVN checkout unless we
+# explicitly tell configure to do so; this allows avoiding to recurse into
+# the documentation directory when building Clutter inside Poky for a
+# target device that doesn't have gtk-doc installed. for reference
+# see: http://bugzilla.openedhand.com/show_bug.cgi?id=1047
+#
+# we use autogen.sh as it exists only inside the SVN checkouts, and it
+# is not packaged into tarballs.
+AM_CONDITIONAL([BUILD_GTK_DOC],
+               [test "x$enable_gtk_doc" = "xyes" || test ! -f "autogen.sh"])
+
 dnl = Manual ===============================================================
 
 AC_ARG_ENABLE(manual,
@@ -668,22 +679,22 @@ AC_OUTPUT
 dnl ========================================================================
 
 echo ""
-echo "                    Clutter $VERSION"
-echo "                 ==================="
+echo "                     Clutter    $VERSION"
+echo "                   ===================="
 echo ""
-echo "                   prefix:   ${prefix}"
+echo "                      prefix:   ${prefix}"
 echo ""
-echo "                  Flavour:   ${clutterbackend}/${CLUTTER_COGL}"
+echo "                     Flavour:   ${clutterbackend}/${CLUTTER_COGL}"
 if test "x$clutterbackend" = "xeglx" || test "x$clutterbackend" = "xglx"; then
-  echo "                   XInput:   ${xinput}"
+  echo "                      XInput:   ${xinput}"
 fi
-echo "               GL Headers:   ${CLUTTER_GL_HEADER}"
-echo "            Image backend:   ${imagebackend}"
-echo "           Target library:   ${clutterbackendlib}"
-echo "              Debug level:   ${enable_debug}"
-echo "           Compiler flags:   ${CPPFLAGS}"
-echo "        API Documentation:   ${enable_gtk_doc}"
-echo "     Manual Documentation:   ${enable_manual}"
+echo "                  GL Headers:   ${CLUTTER_GL_HEADER}"
+echo "               Image backend:   ${imagebackend}"
+echo "              Target library:   ${clutterbackendlib}"
+echo "                 Debug level:   ${enable_debug}"
+echo "              Compiler flags:   ${CPPFLAGS}"
+echo "     Build API Documentation:   ${enable_gtk_doc}"
+echo "  Build Manual Documentation:   ${enable_manual}"
 echo ""