Salome HOME
Prise en compte des instants dans les champs de pilotage pour l'écriture du schÃ...
[modules/homard.git] / doc / fr / Makefile.am
1 # Copyright (C) 2011-2013  CEA/DEN, EDF R&D
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 homarddoc_langue=fr
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 if SPHINX_IS_OK
25
26 homarddoc_DATA=html/index.html
27 html/index.html:$(RSTFILES) dummy
28
29 dummy:
30         make htm
31         make latex
32
33 endif
34
35 homarddocdir=$(docdir)/gui/HOMARD/$(homarddoc_langue)
36
37 SPHINXOPTS  =
38 SPHINXBUILD = sphinx-build
39
40 htm:
41 #       mkdir -p html doctrees
42         mkdir -p html
43         $(SPHINXBUILD) $(SPHINXOPTS) -c $(top_builddir)/doc/$(homarddoc_langue) -b html $(srcdir) html
44         @echo
45         @echo "Build fini. Les pages HTML sont dans html."
46
47 latex:
48 #       mkdir -p latex doctrees
49         mkdir -p latex
50         $(SPHINXBUILD) $(SPHINXOPTS) -c $(top_builddir)/doc/$(homarddoc_langue) -b latex $(srcdir) latex
51         @echo
52         @echo "Build fini. Les pages sont en latex."
53         @echo "Aller dans latex et appliquer deux fois : pdflatex HOMARD.tex pour produire HOMARD.pdf"
54
55 RSTFILES= \
56 index.rst \
57 glossaire.rst \
58 gui_create_boundary.rst \
59 gui_create_case.rst \
60 gui_create_hypothese.rst \
61 gui_create_iteration.rst \
62 gui_create_zone.rst \
63 gui_homard.rst \
64 gui_usage.rst \
65 gui_mesh_info.rst \
66 intro.rst \
67 tui_create_boundary.rst \
68 tui_create_case.rst \
69 tui_create_hypothese.rst \
70 tui_create_iteration.rst \
71 tui_create_zone.rst \
72 tui_homard.rst \
73 tui_usage.rst \
74 tutorials.rst \
75 gui_create_yacs.rst \
76 gui_create_yacs_aster.rst \
77 tui_create_yacs.rst
78
79 EXTRA_DIST += $(RSTFILES) images ../images ../files
80
81 usr_docs:
82         make install-data-local
83
84 docs: usr_docs
85
86 install-data-local:
87         $(INSTALL) -d $(DESTDIR)$(homarddocdir)
88         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
89         if test -d $$b"html"; then cp -rf $$b"html"/* $(DESTDIR)$(homarddocdir); fi;
90
91 uninstall-local:
92         chmod -R +w $(DESTDIR)$(homarddocdir)
93         rm -rf $(DESTDIR)$(homarddocdir)/*
94
95 clean-local:
96         -rm -rf doctrees
97         if test -d "html"; then rm -rf html ; fi
98         if test -d "latex"; then rm -rf latex ; fi
99
100 dist-hook:
101         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
102         if test -d $$b"html"; then cp -rf $$b"html" $(distdir) ; fi