Salome HOME
insertion de la documentation en anglais - phase 1
[modules/homard.git] / doc / 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 #  File   : Makefile.in
21 #  Author : Vasily Rusyaev (Open Cascade NN)
22 #  Module : doc
23 #
24 include $(top_srcdir)/adm_local/unix/make_common_starter.am
25
26 if SPHINX_IS_OK
27
28 homarddoc_DATA=html/index.html html/index_en.html
29 html/index.html:$(RSTFILES)
30         make htm
31         make latex
32 html/index_en.html:$(RSTFILES_EN)
33         make htm
34         make latex
35
36 endif
37
38 homarddocdir=$(docdir)/gui/HOMARD
39
40 SPHINXOPTS      =
41 SOURCEDIR       = $(srcdir)
42 SPHINXBUILD     = sphinx-build
43 PAPEROPT_a4     = -D latex_paper_size=a4
44 ALLSPHINXOPTS   = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
45
46 htm:
47         mkdir -p html doctrees
48         $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
49         @echo
50         @echo "Build finished. The HTML pages are in html."
51
52 latex:
53         mkdir -p latex doctrees
54         $(SPHINXBUILD) -c $(top_builddir)/doc -b latex $(ALLSPHINXOPTS) latex
55         @echo
56         @echo "Build finished. The pages are in latex."
57         @echo "Go into latex and apply twice : pdflatex HOMARD.tex to produce HOMARD.pdf"
58
59 RSTFILES= \
60 index.rst \
61 glossaire.rst \
62 gui_create_boundary.rst \
63 gui_create_case.rst \
64 gui_create_hypothese.rst \
65 gui_create_iteration.rst \
66 gui_create_zone.rst \
67 gui_homard.rst \
68 gui_usage.rst \
69 gui_mesh_info.rst \
70 intro.rst \
71 tui_create_boundary.rst \
72 tui_create_case.rst \
73 tui_create_hypothese.rst \
74 tui_create_iteration.rst \
75 tui_create_zone.rst \
76 tui_homard.rst \
77 tui_usage.rst \
78 tutorials.rst
79
80 RSTFILES_EN= \
81 index_en.rst \
82 glossaire_en.rst \
83 gui_create_boundary_en.rst \
84 gui_create_case_en.rst \
85 gui_create_hypothese_en.rst \
86 gui_create_iteration_en.rst \
87 gui_create_zone_en.rst \
88 gui_homard_en.rst \
89 gui_usage_en.rst \
90 gui_mesh_info_en.rst \
91 intro_en.rst \
92 tui_create_boundary_en.rst \
93 tui_create_case_en.rst \
94 tui_create_hypothese_en.rst \
95 tui_create_iteration_en.rst \
96 tui_create_zone_en.rst \
97 tui_homard_en.rst \
98 tui_usage_en.rst \
99 tutorials_en.rst
100
101 EXTRA_DIST+= $(RSTFILES) images files
102
103 usr_docs:
104         make install-data-local
105
106 docs: usr_docs
107
108 install-data-local:
109         $(INSTALL) -d $(DESTDIR)$(homarddocdir)
110         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
111         if test -d $$b"html"; then cp -rf $$b"html"/* $(DESTDIR)$(homarddocdir); fi;
112
113 uninstall-local:
114         chmod -R +w $(DESTDIR)$(homarddocdir)
115         rm -rf $(DESTDIR)$(homarddocdir)/*
116
117 clean-local:
118         -rm -rf doctrees
119         if test -d "html"; then rm -rf html ; fi
120         if test -d "latex"; then rm -rf latex ; fi
121
122 dist-hook:
123         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
124         if test -d $$b"html"; then cp -rf $$b"html" $(distdir) ; fi