-
+# Copyright (C) 2006-2008 CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
include $(top_srcdir)/adm/unix/make_begin.am
-html/main.html:yacs.dox
+.PHONY : latex
+
+if SPHINX_IS_OK
+
+yacsdoc_DATA=html/index.html
+html/index.html:$(RSTFILES)
+ make htm
+
+endif
+
+dev_docs: build_dev_docs install_dev_docs
+
+build_dev_docs:
doxygen
-DOXFILES= bases.dox engine.dox hmi.dox python.dox runtime.dox yacs.dox yacsloader.dox
+DOXFILES= bases.dox engine.dox hmi.dox python.dox runtime.dox yacs.dox yacsloader.dox
+
+EXTRA_DIST= html htmldev $(DOXFILES)
+
+yacsdocdir=$(docdir)/gui/YACS
+yacsdevdocdir=$(docdir)/gui/YACS/dev
-EXTRA_DIST= html $(DOXFILES)
+SPHINXOPTS =
+SOURCEDIR = $(srcdir)
+SPHINXBUILD = sphinx-build
+PAPEROPT_a4 = -D latex_paper_size=a4
+ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
-install-data-local:html/main.html
- $(INSTALL) -d $(DESTDIR)$(docdir)/gui/YACS;
+htm:
+ mkdir -p html doctrees
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html
+ @echo
+ @echo "Build finished. The HTML pages are in html."
+
+latex:
+ mkdir -p latex doctrees
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex
+ @echo
+ @echo "Build finished; the LaTeX files are in latex."
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+ "run these through (pdf)latex."
+
+RSTFILES= \
+accesCorba.rst \
+accesLocal.rst \
+advancepy.rst \
+annexe_common.rst \
+batch.rst \
+calcium.rst \
+calculator.rst \
+compInterne.rst \
+components.rst \
+console.rst \
+cppsalome.rst \
+dataflow.rst \
+etapes.rst \
+execpy.rst \
+execution.rst \
+execxml.rst \
+gui_components.rst \
+gui.rst \
+hxx2salome.rst \
+index.rst \
+integration.rst \
+intro.rst \
+main_menu.rst \
+modification.rst \
+operations.rst \
+principes.rst \
+progdsc.rst \
+pysalome.rst \
+python.rst \
+rappels.rst \
+references.rst \
+representation.rst \
+salome.rst \
+schemapy.rst \
+schemaxml.rst \
+scratch.rst \
+toolbars.rst \
+yacsgen.rst
+
+
+EXTRA_DIST+= $(RSTFILES) images
+
+install-data-local:
+ $(INSTALL) -d $(DESTDIR)$(yacsdocdir)
if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
- find $$b"html" -name "*.*" -exec cp -rf {} $(DESTDIR)$(docdir)/gui/YACS ';' ; \
- cp -rf $(DESTDIR)$(docdir)/gui/YACS/index.html $(DESTDIR)$(docdir)/gui/YACS/index.htm; \
- cp -rf $(top_srcdir)/src/yacsloader/samples $(DESTDIR)$(docdir)/gui/YACS; \
- rm -rf $(DESTDIR)$(docdir)/gui/YACS/samples/CVS;
+ cp -rf $$b"html"/* $(DESTDIR)$(yacsdocdir) ; \
+ if test -f $$b"latex"/yacs.pdf; then cp -f $$b"latex"/yacs.pdf $(DESTDIR)$(yacsdocdir) ; fi;
+
+install_dev_docs:
+ $(INSTALL) -d $(DESTDIR)$(yacsdevdocdir)
+ if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
+ find $$b"htmldev" -name "*.*" -exec cp -rf {} $(DESTDIR)$(yacsdevdocdir) ';' ; \
+ cp -rf $(top_srcdir)/src/yacsloader/samples $(DESTDIR)$(yacsdevdocdir); \
+ rm -rf $(DESTDIR)$(yacsdevdocdir)/samples/CVS;
uninstall-local:
- chmod -R +w $(DESTDIR)$(docdir)/gui/YACS
- find $(DESTDIR)$(docdir) -name "*.html" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.jpg" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.map" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.md5" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.png" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.gif" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.css" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.js*" -type f -exec rm -rf {} \;
- find $(DESTDIR)$(docdir) -name "*.jpeg*" -type f -exec rm -rf {} \;
- rm -rf $(DESTDIR)$(docdir)/gui/YACS/samples
- rm -rf $(DESTDIR)$(docdir)/gui/YACS/index.htm
+ chmod -R +w $(DESTDIR)$(yacsdocdir)
+ rm -rf $(DESTDIR)$(yacsdocdir)/*
clean-local:
+ -rm -rf html latex doctrees
if test -d "html"; then rm -rf html ; fi
-