[Lemon-commits] [lemon_svn] ladanyi: r1815 - in hugo/trunk: . config doc

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:47:54 CET 2006


Author: ladanyi
Date: Mon Apr 18 19:26:51 2005
New Revision: 1815

Added:
   hugo/trunk/config/misc.m4
Modified:
   hugo/trunk/Makefile.am
   hugo/trunk/configure.ac
   hugo/trunk/doc/Doxyfile.in

Log:
added m4 macro to control documentation generation

Modified: hugo/trunk/Makefile.am
==============================================================================
--- hugo/trunk/Makefile.am	(original)
+++ hugo/trunk/Makefile.am	Mon Apr 18 19:26:51 2005
@@ -1,10 +1,14 @@
 EXTRA_DIST = autopackage/default.apspec.in
 
-SUBDIRS = src doc
+if WANT_DOCS
+  MAYBE_DOC = doc
+endif
+SUBDIRS = src $(MAYBE_DOC)
 
 MRPROPERFILES = \
 	aclocal.m4 \
 	config.h.in \
+	config.h.in~ \
 	configure \
 	Makefile.in \
 	config/depcomp \

Added: hugo/trunk/config/misc.m4
==============================================================================
--- (empty file)
+++ hugo/trunk/config/misc.m4	Mon Apr 18 19:26:51 2005
@@ -0,0 +1,28 @@
+AC_DEFUN([LX_ENABLE_DOCS],
+[
+  AC_ARG_ENABLE([docs],
+AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
+AS_HELP_STRING([--disable-docs], [do not build the documentation]),
+         [], [enable_docs=yes])
+
+  AC_MSG_CHECKING([whether to build the documention])
+  case "$enable_docs" in
+    yes)
+      DOXYGEN_INTERNAL_DOCS=NO
+      AC_MSG_RESULT([yes])
+      ;;
+    full)
+      DOXYGEN_INTERNAL_DOCS=YES
+      AC_MSG_RESULT([full])
+      ;;
+    no)
+      DOXYGEN_INTERNAL_DOCS=NO
+      AC_MSG_RESULT([no])
+      ;;
+    *)
+      AC_MSG_ERROR([bad value $enable_docs for option --enable-docs])
+      ;;
+  esac
+  AC_SUBST(DOXYGEN_INTERNAL_DOCS)
+  AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
+])

Modified: hugo/trunk/configure.ac
==============================================================================
--- hugo/trunk/configure.ac	(original)
+++ hugo/trunk/configure.ac	Mon Apr 18 19:26:51 2005
@@ -26,6 +26,8 @@
 dnl Checks for libraries.
 LX_CHECK_GLPK
 
+LX_ENABLE_DOCS
+
 dnl Checks for header files.
 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
 

Modified: hugo/trunk/doc/Doxyfile.in
==============================================================================
--- hugo/trunk/doc/Doxyfile.in	(original)
+++ hugo/trunk/doc/Doxyfile.in	Mon Apr 18 19:26:51 2005
@@ -278,7 +278,7 @@
 # to NO (the default) then the documentation will be excluded. 
 # Set it to YES to include the internal documentation.
 
-INTERNAL_DOCS          = NO
+INTERNAL_DOCS          = @DOXYGEN_INTERNAL_DOCS@
 
 # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
 # file names in lower-case letters. If set to YES upper-case letters are also 



More information about the Lemon-commits mailing list