mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-30 19:30:36 +05:00
93 lines
2.7 KiB
Makefile
93 lines
2.7 KiB
Makefile
|
# -*- coding: iso-8859-1 -*-
|
||
|
# Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
|
||
|
#
|
||
|
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||
|
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||
|
#
|
||
|
# This library is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU Lesser General Public
|
||
|
# License as published by the Free Software Foundation; either
|
||
|
# version 2.1 of the License.
|
||
|
#
|
||
|
# This library is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
# Lesser General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU Lesser General Public
|
||
|
# License along with this library; if not, write to the Free Software
|
||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
#
|
||
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||
|
|
||
|
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
||
|
|
||
|
pydocdir = $(docdir)/tui/GEOM/docutils
|
||
|
|
||
|
.PHONY : latex
|
||
|
|
||
|
if SPHINX_IS_OK
|
||
|
|
||
|
pydoc_DATA=html/index.html
|
||
|
html/index.html:$(RSTFILES)
|
||
|
make htm
|
||
|
|
||
|
endif
|
||
|
|
||
|
EXTRA_DIST+= html
|
||
|
|
||
|
SPHINXOPTS =
|
||
|
SOURCEDIR = $(srcdir)
|
||
|
SPHINXBUILD = sphinx-build
|
||
|
PAPEROPT_a4 = -D latex_paper_size=a4
|
||
|
ALLSPHINXOPTS = -d doctrees $(PAPEROPT_a4) $(SPHINXOPTS) $(SOURCEDIR)
|
||
|
|
||
|
SPHINX_PYTHONPATH = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/bin/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(OMNIORB_ROOT)/lib/python$(PYTHON_VERSION)/site-packages
|
||
|
|
||
|
SPHINX_LD_LIBRARY_PATH = $(OMNIORB_ROOT)/lib
|
||
|
|
||
|
htm:
|
||
|
mkdir -p html doctrees
|
||
|
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
|
||
|
LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
|
||
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html
|
||
|
@echo
|
||
|
@echo "Build finished. The HTML pages are in html."
|
||
|
|
||
|
latex:
|
||
|
mkdir -p latex doctrees
|
||
|
PYTHONPATH=$(SPHINX_PYTHONPATH):${PYTHONPATH}; \
|
||
|
LD_LIBRARY_PATH=$(SPHINX_LD_LIBRARY_PATH):${LD_LIBRARY_PATH}; \
|
||
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex
|
||
|
@echo
|
||
|
@echo "Build finished; the LaTeX files are in latex."
|
||
|
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
|
||
|
"run these through (pdf)latex."
|
||
|
|
||
|
html:
|
||
|
mkdir -p $@
|
||
|
|
||
|
RSTFILES= \
|
||
|
index.rst \
|
||
|
overview.rst \
|
||
|
docapi.rst
|
||
|
|
||
|
EXTRA_DIST+= $(RSTFILES)
|
||
|
|
||
|
EXTRA_DIST+= \
|
||
|
conf.py
|
||
|
|
||
|
install-data-local:
|
||
|
$(INSTALL) -d $(pydocdir)
|
||
|
if test -d "html"; then b=; else b="$(srcdir)/"; fi; \
|
||
|
cp -rf $$b"html"/* $(pydocdir) ; \
|
||
|
if test -f $$b"latex"/geompy.pdf; then cp -f $$b"latex"/geompy.pdf $(pydocdir) ; fi;
|
||
|
|
||
|
uninstall-local:
|
||
|
chmod -R +w $(pydocdir)
|
||
|
rm -rf $(pydocdir)/*
|
||
|
|
||
|
clean-local:
|
||
|
-rm -rf html latex doctrees
|
||
|
if test -d "html"; then rm -rf html ; fi
|