Salome HOME
Checkbox 'Resource can launch batch jobs' is checked by default (EDF issue #2771)
[modules/jobmanager.git] / doc / Makefile.am
1 # Copyright (C) 2009-2013  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include $(top_srcdir)/src/bases/make_begin.am
21
22 .PHONY : latex
23
24 if SPHINX_IS_OK
25
26 jobmanagerdoc_DATA=html/index.html
27 html/index.html:$(RSTFILES)
28         make htm
29 endif
30
31 #EXTRA_DIST= html htmldev _static
32 EXTRA_DIST= html html/index.html _static images
33
34 jobmanagerdocdir=$(docdir)/gui/JOBMANAGER
35
36 SPHINXOPTS      =
37 SOURCEDIR       = $(srcdir)
38 SPHINXBUILD     = sphinx-build
39 PAPEROPT_a4     = -D latex_paper_size=a4
40 ALLSPHINXOPTS   = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
41
42 htm:
43         mkdir -p html doctrees
44         $(SPHINXBUILD) -c $(top_builddir)/doc -b html $(ALLSPHINXOPTS) html
45         @echo
46         @echo "Build finished. The HTML pages are in html."
47
48 latex:
49         mkdir -p latex doctrees
50         $(SPHINXBUILD) -c $(top_builddir)/doc -b latex $(ALLSPHINXOPTS) latex
51         @echo
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."
55
56 html:
57                  mkdir -p $@
58
59 #htmldev:
60 #                mkdir -p $@
61
62 RSTFILES=          \
63 index.rst          \
64 intro.rst          \
65 resource.rst       \
66 job.rst            \
67 jobmanager_gui.rst \
68 advanced.rst
69
70
71 EXTRA_DIST+= $(RSTFILES)
72
73 install-data-local:
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;
78
79 uninstall-local:
80         chmod -R +w $(DESTDIR)$(jobmanagerdocdir)
81         rm -rf $(DESTDIR)$(jobmanagerdocdir)/*
82
83 clean-local:
84         -rm -rf html latex doctrees
85         if test -d "html"; then rm -rf html ; fi