Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
73edb9aa7c3accfb66544dd869ba815dc07b8bfd
[simgrid.git] / doc / Makefile.am
1 DOCSOURCES = $(shell find @top_srcdir@/tools/gras  @top_srcdir@/src @top_srcdir@/include -name "*.[chl]") \
2  $(shell find @top_srcdir@/src @top_srcdir@/include -name "*.doc")
3
4 EXTRA_DIST = html Doxyfile.API Doxyfile.Examples Doxyfile.main \
5  modules.doc FAQ.doc index.doc footer.html simgrid_logo.png simgrid_modules.png
6
7 DISTCLEANFILES = api_index.doc
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.API Doxyfile.Examples Doxyfile.main logcategories.doc simgrid_modules.map simgrid_modules.png
21         touch api_index.doc
22         doxygen Doxyfile.main >/dev/null
23         doxygen Doxyfile.API >/dev/null
24 #       doxygen Doxyfile.Examples >/dev/null
25 #       @top_srcdir@/tools/doxygen/index_create.pl html/API/API.tag api_index.doc
26         cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/
27         cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/
28 #       doxygen Doxyfile.API >/dev/null
29 #       doxygen Doxyfile.Examples >/dev/null
30 #       doxygen Doxyfile.main >/dev/null
31
32 #       @cd html ; @top_srcdir@/tools/fix_doxygen2.pl `find . -name '*.html'`
33 #       @rm -rf html/API html/examples
34 #       for i in `find doc/html -name "*.html" -exec grep -l "group_[^_]"  {} \;` ; do tools/fix_doxygen.pl $$i; rm $$i.bak; done
35 endif
36
37 logcategories.doc: $(DOCSOURCES)
38         pwd=`pwd`; rm $$pwd/logcategories.doc; set -e; \
39         echo "/* Generated file, do not edit */"          > $$pwd/logcategories.doc; \
40         echo "/** \addtogroup XBT_log_cats"              >> $$pwd/logcategories.doc; \
41         echo "    @{"                                    >> $$pwd/logcategories.doc; \
42         cd @top_srcdir@/src; ./xbt_log_extract_hierarchy >> $$pwd/logcategories.doc; \
43         echo "@}*/"                                      >> $$pwd/logcategories.doc;
44
45 install-data-local: 
46         @for file in `find html/ -type d` ; do \
47            echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\
48            test -z "$(prefix)/doc/simgrid/$$file" || $(mkdir_p) "$(prefix)/doc/simgrid/$$file";\
49         done
50         @for file in `find html/ -type f` ; do \
51            echo " $(INSTALL_DATA) '$$file' '$(prefix)/doc/simgrid/$$file'";\
52            $(INSTALL_DATA) $$file $(prefix)/doc/simgrid/$$file ;\
53         done
54
55 uninstall-local:
56         for file in `find html/ -type f` ; do \
57            echo " rm -f '$(prefix)/doc/simgrid/$$file'";\
58            rm -f $(prefix)/doc/simgrid/$$file ;\
59         done
60
61 .PHONY: html
62
63 include $(top_srcdir)/acmacro/dist-files.mk