aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-10 10:32:06 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-10 10:32:06 +0000
commit0b34b545cd0f56ead6ecaaf12dc344a885e0333f (patch)
treeafb47e97f2c57c002fe34b7d3866911d30535846
parent9c0601c178c3c485acfdef08899a8d2ac0c067d8 (diff)
downloadpaludis-0b34b545cd0f56ead6ecaaf12dc344a885e0333f.tar.gz
paludis-0b34b545cd0f56ead6ecaaf12dc344a885e0333f.tar.xz
Only fetch tags if --enable-doxygen-tags
-rw-r--r--configure.ac18
-rw-r--r--doc/Makefile.am18
-rw-r--r--doc/doxygen.conf.in4
3 files changed, 30 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 49a8257..fe60400 100644
--- a/configure.ac
+++ b/configure.ac
@@ -652,6 +652,24 @@ AC_ARG_ENABLE([doxygen],
AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], [yes], [no])])
AC_SUBST([HAVE_DOXYGEN])
AM_CONDITIONAL([HAVE_DOXYGEN], test "x$HAVE_DOXYGEN" = "xyes")
+
+AC_MSG_CHECKING([whether to use external Doxygen tags])
+AC_ARG_ENABLE([doxygen-tags],
+ AS_HELP_STRING([--enable-doxygen-tags], [Use 'wget' to fetch external Doxygen tags]),
+ [HAVE_DOXYGEN_TAGS=$enableval
+ AC_MSG_RESULT([$enableval])],
+ [AC_MSG_RESULT([no])])
+AC_SUBST([HAVE_DOXYGEN_TAGS])
+AM_CONDITIONAL([HAVE_DOXYGEN_TAGS], test "x$HAVE_DOXYGEN_TAGS" = "xyes")
+
+if test "x$HAVE_DOXYGEN_TAGS" = xyes ; then
+ DOXYGEN_TAG_FILES="\
+ libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen \
+ libwrapiter.tag = http://libwrapiter.pioto.org/"
+else
+ DOXYGEN_TAG_FILES=""
+fi
+AC_SUBST([DOXYGEN_TAG_FILES])
dnl }}}
dnl {{{ check for whether to build qa stuff
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 44e9587..6038abe 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,9 +1,19 @@
SUBDIRS = examples .
+if HAVE_DOXYGEN_TAGS
+
tagfiles = \
libstdc++.tag \
libwrapiter.tag
+libstdc++.tag :
+ wget -O $@ http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
+
+libwrapiter.tag :
+ wget -O $@ http://libwrapiter.pioto.org/libwrapiter.tag
+
+endif
+
docfiles = \
doc_main.doxygen \
doc_mainpage.doxygen \
@@ -37,7 +47,7 @@ htmlfiles = \
man-inquisitio.html
EXTRA_DIST = doxygen.conf.in header.html footer.html paludis.css epydoc.css \
- $(docfiles) $(tagfiles) $(images) htaccess \
+ $(docfiles) $(images) htaccess \
news.html.skel index.html.skel changelog.html.skel licence.html.skel authors.html.skel \
faq.html.skel htmlheader.html htmlfooter.html migration.html.skel cachefiles.html.skel \
configuration.html.skel portagedifferences.html.skel \
@@ -51,12 +61,6 @@ CLEANFILES = *~ news.html index.html changelog.html licence.html authors.html fa
MAINTAINERCLEANFILES = Makefile.in $(tagfiles)
-libstdc++.tag :
- wget -O $@ http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
-
-libwrapiter.tag :
- wget -O $@ http://libwrapiter.pioto.org/libwrapiter.tag
-
www :
mkdir -p www
diff --git a/doc/doxygen.conf.in b/doc/doxygen.conf.in
index 3124fd6..bea7469 100644
--- a/doc/doxygen.conf.in
+++ b/doc/doxygen.conf.in
@@ -1034,9 +1034,7 @@ SKIP_FUNCTION_MACROS = YES
# If a tag file is not located in the directory in which doxygen
# is run, you must also specify the path to the tagfile here.
-TAGFILES =
-TAGFILES += "libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen"
-TAGFILES += "libwrapiter.tag = http://libwrapiter.pioto.org/"
+TAGFILES = @DOXYGEN_TAG_FILES@
# When a file name is specified after GENERATE_TAGFILE, doxygen will create
# a tag file that is based on the input files it reads.