Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try harder to get make remote on VPATH (but doesn't work because dist creates the...
[simgrid.git] / doc / Makefile.am
1 DOCSOURCES = $(shell find @top_srcdir@/src @top_srcdir@/include -name "*.[chl]") $(shell find @top_srcdir@/src @top_srcdir@/include -name "*.doc")
2
3 EXTRA_DIST = html Doxyfile.API Doxyfile.Examples Doxyfile.main \
4  FAQ.doc index.doc footer.html simgrid_logo.png simgrid_modules.jpg
5
6 DISTCLEANFILES = api_index.doc
7 MAINTAINERCLEANFILES = html
8
9 if MAINTAINER_MODE
10 html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main logcategories.doc
11         touch api_index.doc
12         doxygen Doxyfile.main >/dev/null
13         doxygen Doxyfile.API >/dev/null
14         doxygen Doxyfile.Examples >/dev/null
15         @top_srcdir@/tools/doxygen/index_create.pl html/API/API.tag api_index.doc
16         cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.jpg html/
17         doxygen Doxyfile.API >/dev/null
18         doxygen Doxyfile.Examples >/dev/null
19         doxygen Doxyfile.main >/dev/null
20 #       @cd html ; @top_srcdir@/tools/fix_doxygen2.pl `find . -name '*.html'`
21 #       @rm -rf html/API html/examples
22 #       for i in `find doc/html -name "*.html" -exec grep -l "group_[^_]"  {} \;` ; do tools/fix_doxygen.pl $$i; rm $$i.bak; done
23 endif
24
25 logcategories.doc: $(DOCSOURCES)
26         pwd=`pwd`; rm $$pwd/logcategories.doc; set -e; \
27         echo "/* Generated file, do not edit */"          > $$pwd/logcategories.doc; \
28         echo "/** \addtogroup XBT_log_cats"              >> $$pwd/logcategories.doc; \
29         echo "    @{"                                    >> $$pwd/logcategories.doc; \
30         cd @top_srcdir@/src; ./xbt_log_extract_hierarchy >> $$pwd/logcategories.doc; \
31         echo "@}*/"                                      >> $$pwd/logcategories.doc;
32
33 install-data-local: 
34         @for file in `find html/ -type d` ; do \
35            echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\
36            test -z "$(prefix)/doc/simgrid/$$file" || $(mkdir_p) "$(prefix)/doc/simgrid/$$file";\
37         done
38         @for file in `find html/ -type f` ; do \
39            echo " $(INSTALL_DATA) '$$file' '$(prefix)/doc/simgrid/$$file'";\
40            $(INSTALL_DATA) $$file $(prefix)/doc/simgrid/$$file ;\
41         done
42
43 uninstall-local:
44         for file in `find html/ -type f` ; do \
45            echo " rm -f '$(prefix)/doc/simgrid/$$file'";\
46            rm -f $(prefix)/doc/simgrid/$$file ;\
47         done
48
49 .PHONY: html