From: mquinson Date: Tue, 8 Feb 2005 13:09:01 +0000 (+0000) Subject: Extract automatically the log categories, and add them to the documentation X-Git-Tag: v3.3~4440 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b7c4ce8311e52876b3b669af4539f10c446c1383?ds=sidebyside Extract automatically the log categories, and add them to the documentation git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@911 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/doc/.cvsignore b/doc/.cvsignore index 3ae29262c4..63ab0b1859 100644 --- a/doc/.cvsignore +++ b/doc/.cvsignore @@ -8,3 +8,4 @@ Doxyfile.API Doxyfile.Examples Doxyfile.main api_index.doc +logcategories.doc diff --git a/doc/Doxyfile.API.in b/doc/Doxyfile.API.in index 70047bed3f..20e1114e5b 100644 --- a/doc/Doxyfile.API.in +++ b/doc/Doxyfile.API.in @@ -407,7 +407,8 @@ INPUT = @top_srcdir@/include/ \ @top_srcdir@/src/gras/Virtu \ @top_srcdir@/src/xbt/ \ @top_srcdir@/src/modules.doc \ - ./api_index.doc + ./api_index.doc \ + ./logcategories.doc # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp diff --git a/doc/Makefile.am b/doc/Makefile.am index 46d301f04e..76ec5c0fad 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -7,7 +7,7 @@ DISTCLEANFILES = api_index.doc MAINTAINERCLEANFILES = html if MAINTAINER_MODE -html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main +html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main logcategories.doc touch api_index.doc doxygen Doxyfile.main >/dev/null doxygen Doxyfile.API >/dev/null @@ -22,6 +22,14 @@ html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main # for i in `find doc/html -name "*.html" -exec grep -l "group_[^_]" {} \;` ; do tools/fix_doxygen.pl $$i; rm $$i.bak; done endif +logcategories.doc: $(DOCSOURCES) + pwd=`pwd`; rm $$pwd/logcategories.doc; set -e; \ + echo "/* Generated file, do not edit */" > $$pwd/logcategories.doc; \ + echo "/** \addtogroup XBT_log_cats" >> $$pwd/logcategories.doc; \ + echo " @{" >> $$pwd/logcategories.doc; \ + cd @top_srcdir@/src; ./xbt_log_extract_hierarchy >> $$pwd/logcategories.doc; \ + echo "@}*/" >> $$pwd/logcategories.doc; + install-data-local: @for file in `find html/ -type d` ; do \ echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\