Salome HOME
Fix 'make dist' procedure bugs
[modules/smesh.git] / doc / salome / gui / SMESH / 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 #  Modified by : Alexander BORODIN (OCN) - autotools usage
22 #  Module : doc
23
24 include $(top_srcdir)/adm_local/unix/make_common_starter.am
25
26 EXTRA_DIST += images input static
27
28 usr_docs: doxyfile_py doxyfile 
29         echo "===========================================" ;            \
30         echo "Generating Python interface documentation";               \
31         echo "===========================================" ;            \
32         $(DOXYGEN) doxyfile_py ;                                        \
33         echo "===========================================" ;            \
34         echo "Replacing smeshDC by smesh" ;                             \
35         echo "===========================================" ;            \
36         files=`find smeshpy_doc -type f` ;                              \
37         for filen in $${files} ; do                                     \
38           sed -e "s/\<smeshDC\>/smesh/g" -e "s/smesh\.smesh/smesh/g"    \
39               -e "s/smesh::smesh/smesh/g" $${filen} > $${filen}_ ;      \
40           mv -f $${filen}_ $${filen} ;                                  \
41         done ;                                                          \
42         echo "===========================================" ;            \
43         echo "Generating GUI documentation" ;                           \
44         echo "===========================================" ;            \
45         $(DOXYGEN) doxyfile ;
46
47 docs: usr_docs
48
49 clean-local:
50         @for filen in `find . -maxdepth 1` ; do                         \
51           case $${filen} in                                     \
52             ./Makefile | ./doxyfile | ./doxyfile_py ) ;;        \
53             . | .. ) ;;                                         \
54             *) echo "Removing $${filen}" ; rm -rf $${filen} ;;  \
55           esac ;                                                \
56         done ;
57
58 install-data-local: usr_docs
59         $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH
60         @for filen in `find . -maxdepth 1` ; do                                                         \
61           case $${filen} in                                                                     \
62             ./Makefile | ./doxyfile | ./doxyfile_py ) ;;                                        \
63             ./doxyfile.bak | ./doxyfile_py.bak ) ;;                                             \
64             . | .. ) ;;                                                                         \
65             *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/SMESH ;;  \
66           esac ;                                                                                \
67         done ;
68
69 uninstall-local:
70         rm -rf $(DESTDIR)$(docdir)/gui/SMESH