1 # Copyright (C) 2006-2012 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/unix/make_begin.am
26 yacsdoc_DATA=html/index.html
27 html/index.html:$(RSTFILES)
32 dev_docs: build_dev_docs install_dev_docs
37 DOXFILES= ref/bases.dox ref/engine.dox ref/hmi.dox ref/python.dox ref/runtime.dox ref/yacs.dox ref/yacsloader.dox
39 EXTRA_DIST= _static exemples $(DOXFILES)
41 yacsdocdir=$(docdir)/gui/YACS
42 yacsdevdocdir=$(docdir)/gui/YACS/dev
46 SPHINXBUILD = sphinx-build
47 PAPEROPT_a4 = -D latex_paper_size=a4
48 ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
51 mkdir -p html doctrees
52 $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
54 @echo "Build finished. The HTML pages are in html."
57 mkdir -p latex doctrees
58 $(SPHINXBUILD) -c $(top_builddir)/doc -b latex $(ALLSPHINXOPTS) latex
59 @echo "Running LaTeX files through pdflatex..."
61 @echo "pdflatex finished; the PDF files are in latex."
64 $(SPHINXBUILD) -c $(top_builddir)/doc -b pdf $(ALLSPHINXOPTS) pdf
66 @echo "Build finished. The pdf documents are in pdf."
119 EXTRA_DIST+= $(RSTFILES) images
122 ref/classDiagram.png \
123 ref/createNodeCollaboration.png \
126 ref/programingRules.sxw \
128 ref/sequenceCreateNode.png \
129 ref/undoCreateNodeCollaboration.png
132 $(INSTALL) -d $(DESTDIR)$(yacsdocdir)
133 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
134 cp -rf $$b"html"/* $(DESTDIR)$(yacsdocdir) ; \
135 if test -f $$b"latex"/using.pdf; then cp -f $$b"latex"/using.pdf $(DESTDIR)$(yacsdocdir) ; fi; \
136 if test -f $$b"latex"/integration.pdf; then cp -f $$b"latex"/integration.pdf $(DESTDIR)$(yacsdocdir) ; fi;
139 $(INSTALL) -d $(DESTDIR)$(yacsdevdocdir)
140 if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
141 find $$b"htmldev" -name "*.*" -exec cp -rf {} $(DESTDIR)$(yacsdevdocdir) ';' ; \
142 cp -rf $(top_srcdir)/src/yacsloader/samples $(DESTDIR)$(yacsdevdocdir); \
143 rm -rf $(DESTDIR)$(yacsdevdocdir)/samples/CVS;
146 chmod -R +w $(DESTDIR)$(yacsdocdir)
147 rm -rf $(DESTDIR)$(yacsdocdir)/*
150 -rm -rf html latex doctrees
151 if test -d "html"; then rm -rf html ; fi
154 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
155 if test -d $$b"html"; then cp -rf $$b"html" $(distdir) ; fi; \
156 if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
157 if test -d $$b"htmldev"; then cp -rf $$b"htmldev" $(distdir) ; fi