Added --disable-doc flag to prevent building help docs

svn path=/trunk/; revision=905
This commit is contained in:
Curtis Gedak 2008-09-15 17:23:11 +00:00
parent 3c60d7e1d9
commit 4725b00d60
4 changed files with 60 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2008-09-15 Curtis Gedak <gedakc@gmail.com>
* configure.in,
Makefile.am: Added --disable-doc flag to prevent building help docs
* README: Added note about --disable-doc flag
2008-09-13 Curtis Gedak <gedakc@gmail.com> 2008-09-13 Curtis Gedak <gedakc@gmail.com>
* configure.in: Append -svn to version for continuing development * configure.in: Append -svn to version for continuing development

View File

@ -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@ @INTLTOOL_DESKTOP_RULE@

7
README
View File

@ -54,6 +54,7 @@ b. Building from Source
parted parted
gtkmm24 gtkmm24
gettext gettext
gnome-doc-utils - required if help documentation is to be built
On (K)Ubuntu, these dependencies may be obtained by running the On (K)Ubuntu, these dependencies may be obtained by running the
following command; following command;
@ -64,6 +65,12 @@ b. Building from Source
yum install gtkmm24-devel parted-devel e2fsprogs-devel gettext \ yum install gtkmm24-devel parted-devel e2fsprogs-devel gettext \
perl(XML::Parser) desktop-file-utils 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. The INSTALL file contains further GNU installation instructions.

View File

@ -15,8 +15,6 @@ AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
GNOME_DOC_INIT
dnl====================== dnl======================
dnl checks for other programs dnl checks for other programs
@ -84,6 +82,32 @@ AC_SUBST(GTKMM_LIBS)
AC_SUBST(GTKMM_CFLAGS) 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([ AC_CONFIG_FILES([
Makefile Makefile
compose/Makefile compose/Makefile
@ -96,3 +120,17 @@ po/Makefile.in
]) ])
AC_OUTPUT 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 "========================================================"