Salome HOME
Merge from V6_main 12/04/2013
[modules/med.git] / doc / doxygen / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include $(top_srcdir)/adm_local/unix/make_common_starter.am
21
22 DOX_INPUT_FILE = Doxyfile_med_user
23
24 DOX_EXTRA_FILES = medcouplingexamples.dox
25
26 guidocdir = $(docdir)/gui/MED
27 guidoc_DATA = images/head.png
28
29 # documentation
30 html-local: $(DOXY_INPUT_FILE) $(DOX_EXTRA_FILES)
31         @doxygen $(DOX_INPUT_FILE)
32
33 %.dox: %.doxy
34         @python $(srcdir)/BuildPyExamplesFromCPP.py $< $(top_builddir)/doc/doxygen
35
36 install-data-local : html-local
37         @if test -d doc_ref_user; then                                  \
38         $(INSTALL) -d $(DESTDIR)$(docdir)/gui/MED;                      \
39         fi
40         @if test -d doc_ref_user/html ; then                            \
41           for filen in `find doc_ref_user/html -maxdepth 1 -type f` ; do\
42             echo "Installing $${filen}" ;                               \
43             cp -rp $${filen} $(DESTDIR)$(docdir)/gui/MED ;              \
44           done ;                                                        \
45         fi ;
46
47 uninstall-local:
48         rm -rf $(DESTDIR)$(docdir)/gui/MED
49
50 clean-local:
51         rm -rf doc_ref_user log_user $(DOX_EXTRA_FILES)
52
53 EXTRA_DIST += figures \
54               main.dox \
55               Geometric2D.dox \
56               biblio.dox \
57               barycoords.dox \
58               interpkernel.dox \
59               interptheory.dox \
60               interptools.dox \
61               intersectors.dox \
62               medcoupling.dox \
63               medloader.dox \
64               medpartitioner.dox \
65               remapper.dox \
66               tools.dox \
67               static/footer.html \
68               static/salome_extra.css \
69               images \
70               BuildPyExamplesFromCPP.py
71
72 EXTRA_DIST += $(DOX_EXTRA_FILES:%.dox=%.doxy)