Logo AND Algorithmique Numérique Distribuée

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