Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
79b96a229006f4c3be24c094c8ee92c80412f8f1
[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 DISTCLEANFILES = index-API.doc simgrid.tag
8 MAINTAINERCLEANFILES = html
9
10 if MAINTAINER_MODE
11 simgrid_modules.map: simgrid_modules.fig
12         fig2dev -Lmap simgrid_modules.fig | grep -e IMG -e MAP -e AREA | \
13         sed 's/imagemap/simgrid_modules/g' | sed 's/\.gif/.png/' | \
14         sed 's/<IMG /<IMG style="border:0px "/g' | sed 's/\.gif/.png/' \
15         > simgrid_modules.map
16
17 simgrid_modules.png: simgrid_modules.fig
18         fig2dev -Lpng simgrid_modules.fig > simgrid_modules.png
19
20 html: $(DOCSOURCES) Doxyfile logcategories.doc simgrid_modules.map simgrid_modules.png
21         touch index-API.doc
22         doxygen Doxyfile >/dev/null
23         ../tools/doxygen/index_create.pl simgrid.tag index-API.doc
24         ../tools/doxygen/toc_create.pl FAQ.doc FAQ.toc
25         ../tools/doxygen/toc_create.pl index.doc index.toc
26         doxygen Doxyfile >/dev/null
27         ../tools/doxygen/index_php.pl index.php.in doc/index.html index.php
28         cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/
29         cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/
30         for i in `find html -name '*.html'` ; do \
31             cp $$i $$i.bak ; \
32             cat $$i.bak |  \
33                sed -e 's|<li><a href="index.html"><span>Main\&nbsp;Page</span></a></li>|<li><a href="index.html"><span>Overview</span></a></li>       <li><a href="faq.html"><span>FAQ</span></a></li>|' \
34                    -e 's|<li><a href="annotated.html"><span>Data\&nbsp;Structures</span></a></li>|<li><a href="publis.html"><span>Publications</span></a></li>|g' \
35                    -e 's|<span>Modules</span>|<span>Modules API</span>|g' \
36                    -e 's|<li><a href="dirs.html"><span>Directories</span></a></li>||g' \
37             > $$i ; \
38             rm $$i.bak ; \
39         done
40 endif
41
42 logcategories.doc: $(DOCSOURCES)
43         pwd=`pwd`; rm $$pwd/logcategories.doc; set -e; \
44         echo "/* Generated file, do not edit */"          > $$pwd/logcategories.doc; \
45         echo "/** \addtogroup XBT_log_cats"              >> $$pwd/logcategories.doc; \
46         echo "    @{"                                    >> $$pwd/logcategories.doc; \
47         cd @top_srcdir@/src; ./xbt_log_extract_hierarchy >> $$pwd/logcategories.doc; \
48         echo "@}*/"                                      >> $$pwd/logcategories.doc;
49
50 install-data-local: 
51         @for file in `find html/ -type d` ; do \
52            echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\
53            test -z "$(prefix)/doc/simgrid/$$file" || $(mkdir_p) "$(prefix)/doc/simgrid/$$file";\
54         done
55         @for file in `find html/ -type f` ; do \
56            echo " $(INSTALL_DATA) '$$file' '$(prefix)/doc/simgrid/$$file'";\
57            $(INSTALL_DATA) $$file $(prefix)/doc/simgrid/$$file ;\
58         done
59
60 uninstall-local:
61         for file in `find html/ -type f` ; do \
62            echo " rm -f '$(prefix)/doc/simgrid/$$file'";\
63            rm -f $(prefix)/doc/simgrid/$$file ;\
64         done
65
66 .PHONY: html
67
68 include $(top_srcdir)/acmacro/dist-files.mk