]> SALOME platform Git repositories - modules/geom.git/blob - doc/salome/tui/Makefile.am
Salome HOME
Correction of dependency.
[modules/geom.git] / doc / salome / tui / Makefile.am
1 #  Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 #  File   : Makefile.in
20 #  Author : Vasily Rusyaev (Open Cascade NN)
21 #  Module : doc
22
23 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24
25 EXTRA_DIST+=GEOM
26
27 dev_docs: GEOM/doxyfile
28         echo "===========================================" ;                    \
29         echo "Replacing geompyDC by geompy" ;                                   \
30         echo "===========================================" ;                    \
31         sed -e "/class geompyDC/d" -e "s/^ *#/#/g" -e "s/^ *def /def /g"        \
32           -e "s/geompyDC/geompy/g" $(top_srcdir)/src/GEOM_SWIG/geompyDC.py >    \
33           $(top_builddir)/src/GEOM_SWIG/geompy.py ;                             \
34         echo "===========================================" ;                    \
35         echo "Generating TUI documentation" ;                                   \
36         echo "===========================================" ;                    \
37         cp -fr $(srcdir)/GEOM ./INPUT; \
38         cp -f ./GEOM/doxyfile ./INPUT; \
39         cd INPUT; \
40         sed 's|../../../share/salome|$(top_srcdir)|' ./doxyfile > ./doxyfile1; \
41         sed 's|../../build/salome|$(top_builddir)|' ./doxyfile1 > ./doxyfile2; \
42         mv -f doxyfile2 doxyfile1; \
43         echo "DOXYGEN SUPPORT PYTHON - @DOXYGEN_WITH_PYTHON@"; \
44         if( test "x@DOXYGEN_WITH_PYTHON@" = "xyes"); then \
45           sed 's|python_extension_must_be_here|*.py|' ./doxyfile1 > ./doxyfile2; \
46           mv -f doxyfile2 doxyfile1; \
47           $(DOXYGEN) -u ./doxyfile1; \
48         else \
49           sed 's|python_extension_must_be_here||' ./doxyfile1 > ./doxyfile2; \
50           mv -f doxyfile2 doxyfile1; \
51         fi; \
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         echo "Running doxygen in directory:"`pwd`; \
58         $(DOXYGEN) ./doxyfile; \
59         cd ../; \
60         cp -fr $(srcdir)/GEOM/sources/ GEOM/ ; \
61         rm -fr INPUT ; \
62         rm -f $(top_builddir)/src/GEOM_SWIG/geompy.py
63
64 clean-local:
65         -rm -fr GEOM doxygen.bak
66
67 install-data-local:
68         if test -d GEOM; then \
69           $(INSTALL) -d $(DESTDIR)$(docdir)/tui ; \
70           cp -rp GEOM $(DESTDIR)$(docdir)/tui ; \
71         fi;
72
73 uninstall-local:
74         rm -rf $(DESTDIR)$(docdir)/tui/GEOM
75
76 doctuidir=$(docdir)/tui/GEOM
77
78 nodist_doctui_DATA= GEOM/doxyfile
79 EXTRA_DIST+= GEOM/doxyfile.in