Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reintroduce table of contents
[simgrid.git] / doc / Makefile.am
1 DOCSOURCES = $(shell find @top_srcdir@/tools/gras  @top_srcdir@/src @top_srcdir@/include -name "*.[chl]") \
2  $(shell find @srcdir@ -name "*.doc")
3
4 EXTRA_DIST = html Doxyfile \
5  modules.doc FAQ.doc index.doc publis.doc footer.html simgrid_logo.png simgrid_modules.png
6
7 CLEANFILES = .*.toc
8 DISTCLEANFILES = index-API.doc simgrid.tag
9 MAINTAINERCLEANFILES = html
10
11 if MAINTAINER_MODE
12 simgrid_modules.map: simgrid_modules.fig
13         fig2dev -Lmap simgrid_modules.fig | grep -e IMG -e MAP -e AREA | \
14         sed 's/imagemap/simgrid_modules/g' | sed 's/\.gif/.png/' | \
15         sed 's/<IMG /<IMG style="border:0px "/g' | sed 's/\.gif/.png/' \
16         > simgrid_modules.map
17
18 simgrid_modules.png: simgrid_modules.fig
19         fig2dev -Lpng simgrid_modules.fig > simgrid_modules.png
20
21 html: Doxyfile ./logcategories.doc simgrid_modules.map simgrid_modules.png $(DOCSOURCES)
22         : # Setting up
23         touch index-API.doc .FAQ.doc.toc .index.doc.toc
24         test -e html || mkdir html
25         cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/
26         cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/
27         cp @srcdir@/simgrid.css html/
28         : # First pass
29         doxygen Doxyfile >/dev/null
30         @top_srcdir@/tools/doxygen/index_create.pl simgrid.tag index-API.doc
31         @top_srcdir@/tools/doxygen/toc_create.pl @srcdir@/FAQ.doc @srcdir@/index.doc
32         : # Second pass
33         doxygen Doxyfile >/dev/null
34         : # Post-processing
35         rm -f html/dir* 
36         @top_srcdir@/tools/doxygen/index_php.pl @srcdir@/index.php.in html/index.html index.php
37         @top_srcdir@/tools/doxygen/doxygen_postprocesser.pl
38
39 publish:
40         $(MAKE) -C .. sync-gforge
41 endif
42
43 ./logcategories.doc: $(DOCSOURCES)
44         pwd=`pwd`; rm $$pwd/logcategories.doc; set -e; \
45         echo "/* Generated file, do not edit */"          > $$pwd/logcategories.doc; \
46         echo "/** \addtogroup XBT_log_cats"              >> $$pwd/logcategories.doc; \
47         echo "    @{"                                    >> $$pwd/logcategories.doc; \
48         cd @top_srcdir@/src; ./xbt_log_extract_hierarchy >> $$pwd/logcategories.doc; \
49         echo "@}*/"                                      >> $$pwd/logcategories.doc;
50
51 install-data-local: 
52         @for file in `find html/ -type d` ; do \
53            echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\
54            test -z "$(prefix)/doc/simgrid/$$file" || $(mkdir_p) "$(prefix)/doc/simgrid/$$file";\
55         done
56         @for file in `find html/ -type f` ; do \
57            echo " $(INSTALL_DATA) '$$file' '$(prefix)/doc/simgrid/$$file'";\
58            $(INSTALL_DATA) $$file $(prefix)/doc/simgrid/$$file ;\
59         done
60
61 uninstall-local:
62         for file in `find html/ -type f` ; do \
63            echo " rm -f '$(prefix)/doc/simgrid/$$file'";\
64            rm -f $(prefix)/doc/simgrid/$$file ;\
65         done
66
67 .PHONY: html
68
69 include $(top_srcdir)/acmacro/dist-files.mk