]> SALOME platform Git repositories - modules/geom.git/blob - doc/salome/tui/Makefile.in
Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / tui / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Lesser General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License.
8 #
9 #  This library is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 #  Lesser General Public License for more details.
13 #
14 #  You should have received a copy of the GNU Lesser General Public
15 #  License along with this library; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 #  File   : Makefile.in
21 #  Author : Vasily Rusyaev (Open Cascade NN)
22 #  Module : doc
23
24 top_srcdir=@top_srcdir@
25 top_builddir=../../..
26 root_srcdir=@ROOT_SRCDIR@
27 srcdir=@srcdir@
28 VPATH=.:@srcdir@
29 doxygen=@DOXYGEN@
30
31 @COMMENCE@
32
33 PYTHON_SCRIPTS = \
34         geompy.py \
35         GEOM_TestMeasures.py
36
37 #PYTHON_SCRIPTS_PY2 = py2/geompy.py py2/GEOM_TestMeasures.py
38
39 dev_docs:
40         cp -fr $(srcdir)/GEOM ./INPUT; \
41         cp -fr ./GEOM/doxyfile ./GEOM/doxyfile_py ./INPUT; \
42         cp -fr ./GEOM/sources/static/tree.js ./INPUT/sources/static; \
43         cd INPUT; \
44         sed 's|../../../share/salome|$(root_srcdir)|' ./doxyfile > ./doxyfile1; \
45         sed 's|../../build/salome|$(top_builddir)|' ./doxyfile1 > ./doxyfile2; \
46         mv -f doxyfile2 doxyfile1; \
47         if (test "x@DOXYGEN_WITH_PYTHON@" = "xyes"); then \
48           echo "DOXYGEN SUPPORT PYTHON - @DOXYGEN_WITH_PYTHON@"; \
49           sed 's|python_extension_must_be_here|*.py|' ./doxyfile1 > ./doxyfile2; \
50           mv -f doxyfile2 doxyfile1; \
51           $(doxygen) -u ./doxyfile1; \
52           if( test "x@DOXYGEN_WITH_STL@" = "xyes"); then \
53             sed -e 's|BUILTIN_STL_SUPPORT    = NO|BUILTIN_STL_SUPPORT    = YES|' ./doxyfile1 > ./doxyfile2; \
54             mv -f doxyfile2 doxyfile1; \
55           fi; \
56           mv -f doxyfile1 doxyfile; \
57           $(doxygen) ./doxyfile; \
58           cd ..; \
59         else \
60           sed 's|python_extension_must_be_here||' ./doxyfile1 > ./doxyfile2; \
61           mv -f doxyfile2 doxyfile1; \
62           mv -f doxyfile1 doxyfile; \
63           $(doxygen) ./doxyfile; \
64           mkdir py1; mkdir py2; \
65           cd ..; \
66           for file in $(PYTHON_SCRIPTS) dummy; do \
67             if [ $$file != "dummy" ]; then \
68               cp $(root_srcdir)/src/GEOM_SWIG/$$file INPUT/py1/; \
69             fi ; \
70           done; \
71           cd INPUT; \
72           python $(KERNEL_ROOT_DIR)/share/doc/salome/tui/KERNEL/pythfilter.py ./py1 ./py2; \
73           sed 's|list_py_files_to_process|$(PYTHON_SCRIPTS)|' ./doxyfile_py > py2/doxyfile_py; \
74           cd py2; \
75           $(doxygen) ./doxyfile_py; \
76           cd ../..; \
77         fi; \
78         cp -fr $(srcdir)/GEOM/sources/static/*.* ./GEOM/
79         cp -fr $(srcdir)/GEOM/sources/ GEOM/
80         cp -fr $(srcdir)/GEOM/HTML/ GEOM/
81         rm -fr INPUT
82
83 clean:
84         rm -fr GEOM
85
86 distclean: clean
87         rm -fr INPUT
88
89 install:
90         $(INSTALL) -d $(docdir); \
91         mkdir -p $(docdir)/tui
92         cp -fr GEOM $(docdir)/tui
93
94 uninstall:
95         rm -fr $(docdir)/tui/GEOM