1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Author : Vasily Rusyaev (Open Cascade NN)
24 # Modified by : Alexander BORODIN (OCN) - autotools usage
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29 EXTRA_DIST += images input static
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} ; \
45 echo "===========================================" ; \
46 echo "Generating GUI documentation" ; \
47 echo "===========================================" ; \
53 @for filen in `find . -maxdepth 1` ; do \
55 ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
57 *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \
61 install-data-local: usr_docs
62 $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH
63 @for filen in `find . -maxdepth 1` ; do \
65 ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
66 ./doxyfile.bak | ./doxyfile_py.bak ) ;; \
68 *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/SMESH ;; \
73 rm -rf $(DESTDIR)$(docdir)/gui/SMESH