Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/smesh.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 #  $Header: 
24
25 top_srcdir=@top_srcdir@
26 top_builddir=../../..
27 root_srcdir=@ROOT_SRCDIR@
28 srcdir=@srcdir@
29 VPATH=.:@srcdir@
30 doxygen=@DOXYGEN@
31
32 @COMMENCE@
33
34 PYTHON_SCRIPTS = \
35         smesh.py
36
37 dev_docs:
38         cp -fr $(srcdir)/SMESH ./INPUT; \
39         cp -fr ./SMESH/doxyfile ./SMESH/doxyfile_py ./INPUT; \
40         cp -fr ./SMESH/sources/static/tree.js ./INPUT/sources/static; \
41         cd INPUT; \
42         sed 's|../../../share/salome|$(root_srcdir)|' ./doxyfile > ./doxyfile1; \
43         sed 's|../../build/salome|$(top_builddir)|' ./doxyfile1 > ./doxyfile2; \
44         mv -f doxyfile2 doxyfile1; \
45         if (test "x@DOXYGEN_WITH_PYTHON@" = "xyes"); then \
46           echo "DOXYGEN SUPPORT PYTHON - @DOXYGEN_WITH_PYTHON@"; \
47           sed 's|python_extension_must_be_here|*.py|' ./doxyfile1 > ./doxyfile2; \
48           mv -f doxyfile2 doxyfile1; \
49           $(doxygen) -u ./doxyfile1; \
50           if( test "x@DOXYGEN_WITH_STL@" = "xyes"); then \
51             sed -e 's|BUILTIN_STL_SUPPORT    = NO|BUILTIN_STL_SUPPORT    = YES|' ./doxyfile1 > ./doxyfile2; \
52             mv -f doxyfile2 doxyfile1; \
53           fi; \
54           mv -f doxyfile1 doxyfile; \
55           $(doxygen) ./doxyfile; \
56           cd ..; \
57         else \
58           sed 's|python_extension_must_be_here||' ./doxyfile1 > ./doxyfile2; \
59           mv -f doxyfile2 doxyfile1; \
60           mv -f doxyfile1 doxyfile; \
61           $(doxygen) ./doxyfile; \
62           mkdir py1; mkdir py2; \
63           cd ..; \
64           for file in $(PYTHON_SCRIPTS) dummy; do \
65             if [ $$file != "dummy" ]; then \
66               cp $(root_srcdir)/src/GEOM_SWIG/$$file INPUT/py1/; \
67             fi ; \
68           done; \
69           cd INPUT; \
70           python $(KERNEL_ROOT_DIR)/doc/salome/tui/KERNEL/pythfilter.py ./py1 ./py2; \
71           sed 's|list_py_files_to_process|$(PYTHON_SCRIPTS)|' ./doxyfile_py > py2/doxyfile_py; \
72           cd py2; \
73           $(doxygen) ./doxyfile_py; \
74           cd ../..; \
75         fi; \
76         cp -fr $(srcdir)/SMESH/sources/static/*.* ./SMESH/
77         cp -fr $(srcdir)/SMESH/sources/ SMESH/
78         cp -fr $(srcdir)/SMESH/HTML/ SMESH/
79         rm -fr INPUT
80
81 clean:
82         rm -fr SMESH
83
84 distclean: clean
85         rm -fr INPUT
86
87 install:
88         $(INSTALL) -d $(docdir); \
89         mkdir -p $(docdir)/tui
90         cp -fr SMESH $(docdir)/tui
91
92 uninstall:
93         rm -fr $(docdir)/tui/SMESH