gparted r905 - trunk
- From: gedakc svn gnome org
- To: svn-commits-list gnome org
- Subject: gparted r905 - trunk
- Date: Mon, 15 Sep 2008 17:23:11 +0000 (UTC)
Author: gedakc
Date: Mon Sep 15 17:23:11 2008
New Revision: 905
URL: http://svn.gnome.org/viewvc/gparted?rev=905&view=rev
Log:
Added --disable-doc flag to prevent building help docs
Modified:
trunk/ChangeLog
trunk/Makefile.am
trunk/README
trunk/configure.in
Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am (original)
+++ trunk/Makefile.am Mon Sep 15 17:23:11 2008
@@ -1,4 +1,9 @@
-SUBDIRS = compose doc help include pixmaps po src
+### Do not execute make in the help subdirectory if DISABLE_DOC is set
+if DISABLE_DOC
+SUBDIRS = compose doc include pixmaps po src
+else
+SUBDIRS = help compose doc include pixmaps po src
+endif
@INTLTOOL_DESKTOP_RULE@
Modified: trunk/README
==============================================================================
--- trunk/README (original)
+++ trunk/README Mon Sep 15 17:23:11 2008
@@ -54,6 +54,7 @@
parted
gtkmm24
gettext
+ gnome-doc-utils - required if help documentation is to be built
On (K)Ubuntu, these dependencies may be obtained by running the
following command;
@@ -64,6 +65,12 @@
yum install gtkmm24-devel parted-devel e2fsprogs-devel gettext \
perl(XML::Parser) desktop-file-utils
+ Briefly, the shell commands `./configure; make; make install' should
+ configure, build, and install this package. If you wish to build
+ this package without the help documentation use the --disable-doc
+ flag:
+ E.g., ./configure --disable doc
+
The INSTALL file contains further GNU installation instructions.
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Mon Sep 15 17:23:11 2008
@@ -15,8 +15,6 @@
AC_PROG_CXX
AM_PROG_LIBTOOL
-GNOME_DOC_INIT
-
dnl======================
dnl checks for other programs
@@ -84,6 +82,32 @@
AC_SUBST(GTKMM_CFLAGS)
+dnl======================
+dnl check whether to build documentation - Gnome-Doc-Utils
+dnl======================
+AC_ARG_ENABLE(doc,
+ [ --disable-doc do not build documentation],,)
+if test "x${enable_doc}" = "x" ; then
+ enable_doc=yes
+fi
+
+AC_MSG_CHECKING(whether documentation should be built)
+if test ${enable_doc} = no; then
+ AC_MSG_RESULT([no])
+else
+ AC_MSG_RESULT([yes])
+fi
+
+if test ${enable_doc} = yes; then
+ GNOME_DOC_INIT
+else
+ dnl Do not care if GDU is not found
+ GNOME_DOC_INIT(,,[:])
+fi
+
+AM_CONDITIONAL(DISABLE_DOC, test ${enable_doc} = no)
+
+
AC_CONFIG_FILES([
Makefile
compose/Makefile
@@ -96,3 +120,17 @@
])
AC_OUTPUT
+
+
+dnl======================
+dnl Summary
+dnl======================
+
+echo ""
+echo "================ Final configuration ==================="
+echo " Installing into prefix : $prefix"
+echo ""
+echo " Build documentation? : $enable_doc"
+echo ""
+echo " If all settings are OK, type make and make install "
+echo "========================================================"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]