1 # Copyright (C) 2006-2008 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
19 include $(top_srcdir)/adm/unix/make_begin.am
25 yacsdoc_DATA=html/index.html
26 html/index.html:$(RSTFILES)
31 dev_docs: build_dev_docs install_dev_docs
36 DOXFILES= bases.dox engine.dox hmi.dox python.dox runtime.dox yacs.dox yacsloader.dox
38 EXTRA_DIST= html htmldev $(DOXFILES)
40 yacsdocdir=$(docdir)/gui/YACS
41 yacsdevdocdir=$(docdir)/gui/YACS/dev
45 SPHINXBUILD = sphinx-build
46 PAPEROPT_a4 = -D latex_paper_size=a4
47 ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
50 mkdir -p html doctrees
51 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html
53 @echo "Build finished. The HTML pages are in html."
56 mkdir -p latex doctrees
57 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex
59 @echo "Build finished; the LaTeX files are in latex."
60 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
61 "run these through (pdf)latex."
104 EXTRA_DIST+= $(RSTFILES) images
107 $(INSTALL) -d $(DESTDIR)$(yacsdocdir)
108 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
109 cp -rf $$b"html"/* $(DESTDIR)$(yacsdocdir) ; \
110 if test -f $$b"latex"/yacs.pdf; then cp -f $$b"latex"/yacs.pdf $(DESTDIR)$(yacsdocdir) ; fi;
113 $(INSTALL) -d $(DESTDIR)$(yacsdevdocdir)
114 if test -d "htmldev"; then b=; else b="$(srcdir)/"; fi; \
115 find $$b"htmldev" -name "*.*" -exec cp -rf {} $(DESTDIR)$(yacsdevdocdir) ';' ; \
116 cp -rf $(top_srcdir)/src/yacsloader/samples $(DESTDIR)$(yacsdevdocdir); \
117 rm -rf $(DESTDIR)$(yacsdevdocdir)/samples/CVS;
120 chmod -R +w $(DESTDIR)$(yacsdocdir)
121 rm -rf $(DESTDIR)$(yacsdocdir)/*
124 -rm -rf html latex doctrees
125 if test -d "html"; then rm -rf html ; fi