1 # Copyright (C) 2009-2013 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 include $(top_srcdir)/adm_local/unix/make_common_starter.am
22 # Makefile.am for Sphinx documentation of HEXABLOCK component
23 # Author: Marine Marcilhac From CS
29 hexablockdoc_DATA=html/index.html
31 html/index.html:$(RSTFILES)
36 dev_docs: build_dev_docs install_dev_docs
42 @echo "Please use \`make <target>' where <target> is one of"
43 @echo " html to make standalone HTML files"
44 @echo " pickle to make pickle files"
45 @echo " json to make JSON files"
46 @echo " htmlhelp to make HTML files and a HTML help project"
47 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
48 @echo " changes to make an overview over all changed/added/deprecated items"
49 @echo " linkcheck to check all external links for integrity"
53 EXTRA_DIST+= $(DOXFILES)
55 hexablockdocdir=$(docdir)/gui/HEXABLOCK
56 hexablockdevdocdir=$(docdir)/gui/HEXABLOCK/dev
60 SPHINXBUILD = sphinx-build
61 PAPEROPT_a4 = -D latex_paper_size=a4
62 ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
65 mkdir -p html doctrees
66 $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
68 @echo "Build finished. The HTML pages are in html."
71 mkdir -p latex doctrees
72 $(SPHINXBUILD) -c $(top_builddir)/doc -b latex $(ALLSPHINXOPTS) latex
74 @echo "Build finished; the LaTeX files are in latex."
75 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
76 "run these through (pdf)latex."
79 $(SPHINXBUILD) -c $(top_builddir)/doc -b pdf $(ALLSPHINXOPTS) pdf
81 @echo "Build finished. The pdf documents are in pdf."
94 full_example_bridle.rst \
97 gui_asso_quad_to_geom.rst \
98 gui_asso_vertex_to_geom.rst \
99 gui_blocks_for_cyl_pipe.rst \
104 gui_discret_law.rst \
111 gui_make_symmetry.rst \
112 gui_merge_elmts.rst \
114 gui_modify_elmts.rst \
115 gui_modify_symmetry.rst \
116 gui_association.rst \
118 gui_prism_join_quad.rst \
121 gui_quad_revolution.rst \
123 gui_replace_hexa.rst \
129 intro_association.rst \
136 tui_asso_quad_to_geom.rst \
137 tui_asso_vertex_to_geom.rst \
138 tui_blocks_for_cyl_pipe.rst \
142 tui_make_symmetry.rst \
143 tui_perform_symmetry.rst \
147 tui_quad_revolution.rst \
148 tui_discret_law.rst \
149 tui_association.rst \
156 tui_hemisphere_rind.rst \
157 tui_merge_elmts.rst \
159 tui_modify_elmts.rst \
161 tui_prism_join_quad.rst \
165 tui_replace_hexa.rst \
176 EXTRA_DIST+= $(RSTFILES) _static cas_test_python
179 $(INSTALL) -d $(DESTDIR)$(hexablockdocdir)
180 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
181 cp -rf $$b"html"/* $(DESTDIR)$(hexablockdocdir) ; \
182 if test -f $$b"latex"/using.pdf; then cp -f $$b"latex"/using.pdf $(DESTDIR)$(hexablockdocdir) ; fi; \
183 if test -f $$b"latex"/integration.pdf; then cp -f $$b"latex"/integration.pdf $(DESTDIR)$(hexablockdocdir) ; fi;
186 $(INSTALL) -d $(DESTDIR)$(hexablockdevdocdir)
187 if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
188 find $$b"htmldev" -name "*.*" -exec cp -rf {} $(DESTDIR)$(hexablockdevdocdir) ';' ; \
189 cp -rf $(top_srcdir)/src/hexablockloader/samples $(DESTDIR)$(hexablockdevdocdir); \
190 rm -rf $(DESTDIR)$(hexablockdevdocdir)/samples/CVS;
193 chmod -R +w $(DESTDIR)$(hexablockdocdir)
194 rm -rf $(DESTDIR)$(hexablockdocdir)/*
197 -rm -rf html latex doctrees
198 if test -d "html"; then rm -rf html ; fi
201 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
202 if test -d $$b"html"; then cp -rf $$b"html" $(distdir) ; fi; \
203 if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
204 if test -d $$b"htmldev"; then cp -rf $$b"htmldev" $(distdir) ; fi