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/footer.html static/doxygen.css
31 guidocdir = $(docdir)/gui/SMESH
32 guidoc_DATA = images/head.png
35 usr_docs: doxyfile_py doxyfile
36 echo "===========================================" ; \
37 echo "Generating Python interface documentation"; \
38 echo "===========================================" ; \
39 $(DOXYGEN) doxyfile_py ; \
40 echo "===========================================" ; \
41 echo "Replacing smeshDC by smesh" ; \
42 echo "===========================================" ; \
43 files=`find smeshpy_doc -type f` ; \
44 for filen in $${files} ; do \
45 sed -e "s/\<smeshDC\>/smesh/g" -e "s/smesh\.smesh/smesh/g" \
46 -e "s/smesh::smesh/smesh/g" $${filen} > $${filen}_ ; \
47 mv -f $${filen}_ $${filen} ; \
49 echo "===========================================" ; \
50 echo "Generating GUI documentation" ; \
51 echo "===========================================" ; \
57 @for filen in `find . -maxdepth 1` ; do \
59 ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
61 *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \
65 install-data-local: usr_docs
66 $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH
67 @for filen in `find . -maxdepth 1` ; do \
69 ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
70 ./doxyfile.bak | ./doxyfile_py.bak ) ;; \
72 *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/SMESH ;; \
77 rm -rf $(DESTDIR)$(docdir)/gui/SMESH