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)/src/bases/make_begin.am
26 jobmanagerdoc_DATA=html/index.html
27 html/index.html:$(RSTFILES)
31 #EXTRA_DIST= html htmldev _static
32 EXTRA_DIST= html html/index.html _static images
34 jobmanagerdocdir=$(docdir)/gui/JOBMANAGER
38 SPHINXBUILD = sphinx-build
39 PAPEROPT_a4 = -D latex_paper_size=a4
40 ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
43 mkdir -p html doctrees
44 $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
46 @echo "Build finished. The HTML pages are in html."
49 mkdir -p latex doctrees
50 $(SPHINXBUILD) -c $(top_builddir)/doc -b latex $(ALLSPHINXOPTS) latex
52 @echo "Build finished; the LaTeX files are in latex."
53 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
54 "run these through (pdf)latex."
71 EXTRA_DIST+= $(RSTFILES)
74 $(INSTALL) -d $(DESTDIR)$(jobmanagerdocdir)
75 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
76 cp -rf $$b"html"/* $(DESTDIR)$(jobmanagerdocdir) ; \
77 if test -f $$b"latex"/jobmanager.pdf; then cp -f $$b"latex"/jobmanager.pdf $(DESTDIR)$(jobmanagerdocdir) ; fi;
80 chmod -R +w $(DESTDIR)$(jobmanagerdocdir)
81 rm -rf $(DESTDIR)$(jobmanagerdocdir)/*
84 -rm -rf html latex doctrees
85 if test -d "html"; then rm -rf html ; fi