Salome HOME
a93b57ccb0eaed84b96225b5f61b1c279c7b6111
[modules/smesh.git] / doc / salome / gui / SMESH / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #  File   : Makefile.in
23 #  Author : Vasily Rusyaev (Open Cascade NN)
24 #  Modified by : Alexander BORODIN (OCN) - autotools usage
25 #  Module : doc
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 EXTRA_DIST += images input static
30
31 usr_docs: doxyfile_py doxyfile 
32         echo "===========================================" ;            \
33         echo "Generating Python interface documentation";               \
34         echo "===========================================" ;            \
35         $(DOXYGEN) doxyfile_py ;                                        \
36         echo "===========================================" ;            \
37         echo "Replacing smeshDC by smesh" ;                             \
38         echo "===========================================" ;            \
39         files=`find smeshpy_doc -type f` ;                              \
40         for filen in $${files} ; do                                     \
41           sed -e "s/\<smeshDC\>/smesh/g" -e "s/smesh\.smesh/smesh/g"    \
42               -e "s/smesh::smesh/smesh/g" $${filen} > $${filen}_ ;      \
43           mv -f $${filen}_ $${filen} ;                                  \
44         done ;                                                          \
45         echo "===========================================" ;            \
46         echo "Generating GUI documentation" ;                           \
47         echo "===========================================" ;            \
48         $(DOXYGEN) doxyfile ;
49
50 docs: usr_docs
51
52 clean-local:
53         @for filen in `find . -maxdepth 1` ; do                         \
54           case $${filen} in                                     \
55             ./Makefile | ./doxyfile | ./doxyfile_py ) ;;        \
56             . | .. ) ;;                                         \
57             *) echo "Removing $${filen}" ; rm -rf $${filen} ;;  \
58           esac ;                                                \
59         done ;
60
61 install-data-local: usr_docs
62         $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH
63         @for filen in `find . -maxdepth 1` ; do                                                         \
64           case $${filen} in                                                                     \
65             ./Makefile | ./doxyfile | ./doxyfile_py ) ;;                                        \
66             ./doxyfile.bak | ./doxyfile_py.bak ) ;;                                             \
67             . | .. ) ;;                                                                         \
68             *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/SMESH ;;  \
69           esac ;                                                                                \
70         done ;
71
72 uninstall-local:
73         rm -rf $(DESTDIR)$(docdir)/gui/SMESH