Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/geom.git] / doc / salome / tui / Makefile.in
1 #  Copyright (C) 2003  CEA/DEN, EDF R&D
2 #
3 #
4 #
5 #  File   : Makefile.in
6 #  Author : Vasily Rusyaev (Open Cascade NN)
7 #  Module : doc
8 #  $Header: 
9
10 top_srcdir=@top_srcdir@
11 top_builddir=../../..
12 root_srcdir=@ROOT_SRCDIR@
13 srcdir=@srcdir@
14 VPATH=.:@srcdir@
15 doxygen=@DOXYGEN@
16
17 @COMMENCE@
18
19 PYTHON_SCRIPTS = \
20         geompy.py \
21         GEOM_TestMeasures.py
22
23 #PYTHON_SCRIPTS_PY2 = py2/geompy.py py2/GEOM_TestMeasures.py
24
25 docs:
26         cp -fr $(srcdir)/GEOM ./INPUT
27         cd INPUT; \
28         sed 's|../../../share/salome|$(root_srcdir)|' ./doxyfile > ./doxyfile1; \
29         sed 's|../../build/salome|$(top_builddir)|' ./doxyfile1 > ./doxyfile2; \
30         sed "s|version|`cut -d: -f2 $(root_srcdir)/bin/VERSION`|" ./doxyfile2 > ./doxyfile3; \
31         mv -f doxyfile3 doxyfile1; \
32         if (test "x@DOXYGEN_WITH_PYTHON@" = "xyes"); then \
33           echo "DOXYGEN SUPPORT PYTHON - @DOXYGEN_WITH_PYTHON@"; \
34           sed 's|python_extension_must_be_here|*.py|' ./doxyfile1 > ./doxyfile2; \
35           mv -f doxyfile2 doxyfile1; \
36           $(doxygen) -u ./doxyfile1; \
37           if( test "x@DOXYGEN_WITH_STL@" = "xyes"); then \
38             sed -e 's|BUILTIN_STL_SUPPORT    = NO|BUILTIN_STL_SUPPORT    = YES|' ./doxyfile1 > ./doxyfile2; \
39             mv -f doxyfile2 doxyfile1; \
40           fi; \
41           mv -f doxyfile1 doxyfile; \
42           $(doxygen) ./doxyfile; \
43           cd ..; \
44         else \
45           sed 's|python_extension_must_be_here||' ./doxyfile1 > ./doxyfile2; \
46           mv -f doxyfile2 doxyfile1; \
47           mv -f doxyfile1 doxyfile; \
48           $(doxygen) ./doxyfile; \
49           mkdir py1; mkdir py2; \
50           cd ..; \
51           for file in $(PYTHON_SCRIPTS) dummy; do \
52             if [ $$file != "dummy" ]; then \
53               cp $(root_srcdir)/src/GEOM_SWIG/$$file INPUT/py1/; \
54             fi ; \
55           done; \
56           cd INPUT; \
57           python $(KERNEL_ROOT_DIR)/share/doc/salome/tui/KERNEL/pythfilter.py ./py1 ./py2; \
58           sed 's|list_py_files_to_process|$(PYTHON_SCRIPTS)|' ./doxyfile_py > py2/doxyfile_py; \
59           cd py2; \
60           $(doxygen) ./doxyfile_py; \
61           cd ../..; \
62         fi; \
63         cp -fr $(srcdir)/GEOM/sources/static/*.* ./GEOM/
64         cp -fr $(srcdir)/GEOM/sources/ GEOM/
65         cp -fr $(srcdir)/GEOM/HTML/ GEOM/
66         rm -fr INPUT
67
68 clean:
69         rm -fr GEOM
70
71 distclean: clean
72         rm -fr INPUT
73
74 install:
75         $(INSTALL) -d $(docdir); \
76         mkdir -p $(docdir)/tui
77         cp -fr GEOM $(docdir)/tui
78
79 uninstall:
80         rm -fr $(docdir)/tui/GEOM