Salome HOME
b2d329ae4bf5b535012c7234b936e6bd2abeaa39
[modules/yacs.git] / doc / Makefile.am
1 #  Copyright (C) 2006-2008  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 include $(top_srcdir)/adm/unix/make_begin.am
20
21 .PHONY : latex
22
23 if SPHINX_IS_OK
24
25 yacsdoc_DATA=html/index.html
26 html/index.html:$(RSTFILES)
27         make htm
28
29 endif
30
31 dev_docs: build_dev_docs install_dev_docs
32
33 build_dev_docs:
34         doxygen
35
36 DOXFILES= bases.dox engine.dox hmi.dox python.dox runtime.dox yacs.dox yacsloader.dox
37
38 EXTRA_DIST= html htmldev $(DOXFILES)
39
40 yacsdocdir=$(docdir)/gui/YACS
41 yacsdevdocdir=$(docdir)/gui/YACS/dev
42
43 SPHINXOPTS      =
44 SOURCEDIR       = $(srcdir)
45 SPHINXBUILD     = sphinx-build
46 PAPEROPT_a4     = -D latex_paper_size=a4
47 ALLSPHINXOPTS   = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
48
49 htm:
50         mkdir -p html doctrees
51         $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html
52         @echo
53         @echo "Build finished. The HTML pages are in html."
54
55 latex:
56         mkdir -p latex doctrees
57         $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex
58         @echo
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."
62
63 RSTFILES=          \
64 accesCorba.rst     \
65 accesLocal.rst     \
66 advancepy.rst      \
67 annexe_common.rst  \
68 batch.rst          \
69 calcium.rst        \
70 calculator.rst     \
71 compInterne.rst   \
72 components.rst  \
73 console.rst        \
74 cppsalome.rst      \
75 dataflow.rst       \
76 etapes.rst   \
77 execpy.rst         \
78 execution.rst      \
79 execxml.rst        \
80 gui_components.rst \
81 gui.rst            \
82 hxx2salome.rst     \
83 index.rst          \
84 integration.rst    \
85 intro.rst          \
86 main_menu.rst      \
87 modification.rst   \
88 operations.rst     \
89 principes.rst      \
90 progdsc.rst        \
91 pysalome.rst       \
92 python.rst         \
93 rappels.rst        \
94 references.rst  \
95 representation.rst \
96 salome.rst   \
97 schemapy.rst       \
98 schemaxml.rst      \
99 scratch.rst        \
100 toolbars.rst       \
101 yacsgen.rst
102
103
104 EXTRA_DIST+= $(RSTFILES) images
105
106 install-data-local:
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;
111
112 install_dev_docs:
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;
118
119 uninstall-local:
120         chmod -R +w $(DESTDIR)$(yacsdocdir)
121         rm -rf $(DESTDIR)$(yacsdocdir)/*
122
123 clean-local:
124         -rm -rf html latex doctrees
125         if test -d "html"; then rm -rf html ; fi