From b1a610d76933a8c608292b388f2bcbc1a9f8fcdc Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 2 Jan 2006 20:58:13 +0000 Subject: [PATCH] call the toc_create.pl only once; do all of the post-processing in the perl script, not with sed. This speeds things nicely; also kill the html/dir*.html file, we do not use them git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1885 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- doc/Makefile.am | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index eb332d08fe..580c3bdc04 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -4,6 +4,7 @@ DOCSOURCES = $(shell find @top_srcdir@/tools/gras @top_srcdir@/src @top_srcdir@ EXTRA_DIST = html Doxyfile \ modules.doc FAQ.doc index.doc publis.doc footer.html simgrid_logo.png simgrid_modules.png +CLEANFILES = .*.toc DISTCLEANFILES = index-API.doc simgrid.tag MAINTAINERCLEANFILES = html @@ -18,24 +19,19 @@ simgrid_modules.png: simgrid_modules.fig fig2dev -Lpng simgrid_modules.fig > simgrid_modules.png html: $(DOCSOURCES) Doxyfile logcategories.doc simgrid_modules.map simgrid_modules.png - touch index-API.doc + : # Setting up + touch index-API.doc .FAQ.doc.toc + cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/ + cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/ + cp @srcdir@/simgrid.css html/ + : # First pass doxygen Doxyfile >/dev/null ../tools/doxygen/index_create.pl simgrid.tag index-API.doc - ../tools/doxygen/toc_create.pl FAQ.doc FAQ.toc - ../tools/doxygen/toc_create.pl index.doc index.toc + ../tools/doxygen/toc_create.pl FAQ.doc index.doc + : # Second pass doxygen Doxyfile >/dev/null - cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/ - cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/ - for i in `find html -name '*.html'` ; do \ - cp $$i $$i.bak ; \ - cat $$i.bak | \ - sed -e 's|
  • Main\ Page
  • |
  • Overview
  • FAQ
  • |' \ - -e 's|
  • Data\ Structures
  • |
  • Publications
  • |g' \ - -e 's|Modules|Modules API|g' \ - -e 's|
  • Directories
  • ||g' \ - > $$i ; \ - rm $$i.bak ; \ - done + : # Post-processing + rm html/dir* ../tools/doxygen/index_php.pl index.php.in html/index.html index.php ../tools/doxygen/doxygen_postprocesser.pl endif -- 2.20.1