1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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 # author: Guillaume Boulant (EDF/R&D, 2012)
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24 tuidocdir = $(docdir)/tui/MED
25 devdocdir = $(docdir)/dev/MED
26 medopdocdir=$(devdocdir)
32 medopdoc_DATA=html/index.html
33 html/index.html:$(RSTFILES)
42 SPHINXBUILD = sphinx-build
43 PAPEROPT_a4 = -D latex_paper_size=a4
44 ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
45 SPHINX_PYTHONPATH = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/bin/salome:$(OMNIORB_ROOT)/lib/python$(PYTHON_VERSION)/site-packages
47 CONF_PATH = $(top_builddir)/src/MEDOP/doc/sphinx
49 SPHINX_LD_LIBRARY_PATH = $(OMNIORB_ROOT)/lib
52 mkdir -p html doctrees
53 PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
54 LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
55 $(SPHINXBUILD) -c $(CONF_PATH) -b html $(ALLSPHINXOPTS) html
57 @echo "Build finished. The HTML pages are in html."
60 mkdir -p latex doctrees
61 PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
62 LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
63 $(SPHINXBUILD) -c $(CONF_PATH) -b latex $(ALLSPHINXOPTS) latex
65 @echo "Build finished; the LaTeX files are in latex."
66 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
67 "run these through (pdf)latex."
74 xmed-specifications.rst \
78 # Files on the development of the prototype (version 2010)
80 xmed-prototype-overview.rst \
81 xmed-prototype-develguide.rst \
82 xmed-prototype-medmem.rst
84 # Files containing definitions and references
86 xmed-definitions.rst \
88 xmed-workingnotes-2010.rst \
89 xmed-workingnotes-2011.rst \
90 xmed-workingnotes-2012.rst
92 # Files on annexe topics
96 EXTRA_DIST+= $(RSTFILES)
102 $(INSTALL) -d $(DESTDIR)$(medopdocdir)
103 if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
104 cp -rf $$b"html"/* $(DESTDIR)$(medopdocdir) ; \
105 if test -f $$b"latex"/medopdoc.pdf; then cp -f $$b"latex"/medopdoc.pdf $(DESTDIR)$(medopdocdir) ; fi;
108 chmod -R +w $(DESTDIR)$(medopdocdir)
109 rm -rf $(DESTDIR)$(medopdocdir)/*
112 -rm -rf html latex doctrees
113 if test -d "html"; then rm -rf html ; fi
116 cd latex; make all-pdf
117 cp latex/*.pdf html/_static/documents/.
119 WIKIRELATIVEPATH="pub/userdata/gboulant/data/salome/smodules/xmed/doc"
120 WIKIREMOTEPATH="nepal@nepal:/nepal/$(WIKIRELATIVEPATH)"
122 rsync -avz html/ $(WIKIREMOTEPATH)
123 @echo "The documentation can be read at URL : http://nepal.der.edf.fr/$(WIKIRELATIVEPATH)/index.html"