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 : Paul RASCLE (EDF)
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
29 EXTRA_DIST = pythfilter.py
32 cp -rf $(srcdir)/KERNEL $(distdir)
33 if test -d "KERNEL"; then \
34 find "KERNEL" -name "*.*" -exec cp -rf {} $(distdir)/KERNEL ';' ; \
36 rm -rf `find $(distdir) -name CVS`
41 @for filen in `find INPUT -type f` ; do \
43 INPUT/doxydev | INPUT/doxyuser | INPUT/sources/static/tree.js ) ;; \
45 *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \
49 KERNEL/main.html:../main.dox
50 cp -fr $(srcdir)/KERNEL/* ./INPUT; \
53 echo "DOXYGEN SUPPORT PYTHON - $(DOXYGEN_WITH_PYTHON)"; \
54 if( test "x$(DOXYGEN_WITH_PYTHON)" = "xyes"); then \
55 sed 's|python_extension_must_be_here|*.py|' ./doxyuser > ./doxyuser1; \
56 $(DOXYGEN) -u ./doxyuser1; \
58 sed 's|python_extension_must_be_here||' ./doxyuser > ./doxyuser1; \
60 echo "DOXYGEN SUPPORT STL - $(DOXYGEN_WITH_STL)"; \
61 if( test "x$(DOXYGEN_WITH_STL)" = "xyes"); then \
62 sed -e 's|BUILTIN_STL_SUPPORT = NO|BUILTIN_STL_SUPPORT = YES|' ./doxyuser1 > ./doxyuser2; \
63 mv -f doxyuser2 doxyuser1; \
65 $(DOXYGEN) ./doxyuser1; \
68 usr_docs:KERNEL/main.html
69 if test -d "KERNEL"; then b=; else b="$(srcdir)/"; fi; \
70 cp -fr $(srcdir)/KERNEL/sources/static/*.* $(DESTDIR)$(docdir); \
71 cp -fr $(srcdir)/KERNEL/sources/ $(DESTDIR)$(docdir); \
72 find $$b"KERNEL" -name "*.*" -exec cp -rf {} $(DESTDIR)$(docdir) ';' ; \
73 cp -fr $(srcdir)/KERNEL/HTML/ $(DESTDIR)$(docdir); \
74 cp -f $(srcdir)/pythfilter.py $(DESTDIR)$(docdir); \
75 cp -fr $(srcdir)/KERNEL/exemple/ $(DESTDIR)$(docdir);
78 # chmod +w $(DESTDIR)$(docdir)/sources
79 # chmod +w $(DESTDIR)$(docdir)/sources/static
80 # chmod +w $(DESTDIR)$(docdir)/HTML
81 chmod -R +w $(DESTDIR)$(docdir)
82 rm -rf $(DESTDIR)$(docdir)/pythfilter.py
83 find $(DESTDIR)$(docdir) -name "*.html" -type f -exec rm -rf {} \;
84 find $(DESTDIR)$(docdir) -name "*.jpg" -type f -exec rm -rf {} \;
85 find $(DESTDIR)$(docdir) -name "*.map" -type f -exec rm -rf {} \;
86 find $(DESTDIR)$(docdir) -name "*.md5" -type f -exec rm -rf {} \;
87 find $(DESTDIR)$(docdir) -name "*.png" -type f -exec rm -rf {} \;
88 find $(DESTDIR)$(docdir) -name "*.gif" -type f -exec rm -rf {} \;
89 find $(DESTDIR)$(docdir) -name "*.css" -type f -exec rm -rf {} \;
90 find $(DESTDIR)$(docdir) -name "*.js*" -type f -exec rm -rf {} \;
91 rm -rf $(DESTDIR)$(docdir)/sources
92 rm -rf $(DESTDIR)$(docdir)/HTML
93 rm -rf $(DESTDIR)$(docdir)/exemple
94 rm -rf $(DESTDIR)$(docdir)/*.in
97 cp -fr $(srcdir)/KERNEL/* ./INPUT; \
100 echo "DOXYGEN SUPPORT PYTHON - $(DOXYGEN_WITH_PYTHON)"; \
101 if( test "x$(DOXYGEN_WITH_PYTHON)" = "xyes"); then \
102 sed 's|python_extension_must_be_here|*.py|' ./doxydev > ./doxydev1; \
103 $(DOXYGEN) -u ./doxydev1; \
105 sed 's|python_extension_must_be_here||' ./doxydev > ./doxydev1; \
107 echo "DOXYGEN SUPPORT STL - $(DOXYGEN_WITH_STL)"; \
108 if( test "x$(DOXYGEN_WITH_STL)" = "xyes"); then \
109 sed -e 's|BUILTIN_STL_SUPPORT = NO|BUILTIN_STL_SUPPORT = YES|' ./doxydev1 > ./doxydev2; \
110 mv -f doxydev2 doxydev1; \
112 $(DOXYGEN) ./doxydev1; \
114 $(INSTALL) -d $(docdir)/tui/KERNEL;
115 # cp -fr KERNEL $(docdir)/tui
116 # cp -fr $(srcdir)/KERNEL/sources/static/*.* $(docdir)/tui/KERNEL;
117 # cp -fr $(srcdir)/KERNEL/sources/ $(docdir)/tui/KERNEL;
118 # cp -fr $(srcdir)/KERNEL/HTML/ $(docdir)/tui/KERNEL;
119 # cp -f $(srcdir)/pythfilter.py $(docdir)/tui/KERNEL;