Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / doc / Makefile.am
1 # Copyright (C) 2011-2012  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
29 html/index.html:$(RSTFILES)
30         make htm
31
32 endif
33
34 homarddocdir=$(docdir)/gui/HOMARD
35
36 SPHINXOPTS      =
37 SOURCEDIR       = $(srcdir)
38 SPHINXBUILD     = sphinx-build
39 PAPEROPT_a4     = -D latex_paper_size=a4
40 ALLSPHINXOPTS   = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
41
42 htm:
43         mkdir -p html doctrees
44         $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
45         @echo
46         @echo "Build finished. The HTML pages are in html."
47
48 RSTFILES= \
49 glossaire.rst \
50 gui_create_boundary.rst \
51 gui_create_case.rst \
52 gui_create_hypothese.rst \
53 gui_create_iteration.rst \
54 gui_create_zone.rst \
55 gui_homard.rst \
56 gui_usage.rst \
57 index.rst \
58 intro.rst \
59 tui_create_boundary.rst \
60 tui_create_case.rst \
61 tui_create_hypothese.rst \
62 tui_create_iteration.rst \
63 tui_create_zone.rst \
64 tui_homard.rst \
65 tui_usage.rst \
66 tutorials.rst
67
68 EXTRA_DIST+= $(RSTFILES) images files
69
70 usr_docs: 
71         make install-data-local
72
73 docs: usr_docs
74
75 install-data-local:
76         $(INSTALL) -d $(DESTDIR)$(homarddocdir)
77         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
78         if test -d $$b"html"; then cp -rf $$b"html"/* $(DESTDIR)$(homarddocdir); fi;
79
80 uninstall-local:
81         chmod -R +w $(DESTDIR)$(homarddocdir)
82         rm -rf $(DESTDIR)$(homarddocdir)/*
83
84 clean-local:
85         -rm -rf doctrees
86         if test -d "html"; then rm -rf html ; fi
87
88 dist-hook:
89         if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
90         if test -d $$b"html"; then cp -rf $$b"html" $(distdir) ; fi