From 79641ea92e2b3d911cf17dbd6c3ace4db49c718e Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 2 Mar 2011 09:36:44 +0000 Subject: [PATCH] 0021196: [CEA 456] Integration and merge modification for debian packages smesh-fix-clean.patch This patch is for cleaning completely the build directory smesh-install-without-docs.patch We think that building and installing the documentation should not be the default behavior but reserved to interested users --- doc/salome/gui/SMESH/Makefile.am | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/salome/gui/SMESH/Makefile.am b/doc/salome/gui/SMESH/Makefile.am index 1bb1e9bee..878256471 100755 --- a/doc/salome/gui/SMESH/Makefile.am +++ b/doc/salome/gui/SMESH/Makefile.am @@ -50,24 +50,24 @@ usr_docs: doxyfile_py doxyfile docs: usr_docs clean-local: - @for filen in `find . -maxdepth 1` ; do \ - case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \ - . | .. | ./static ) ;; \ - *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \ - esac ; \ + @for filen in `find . -maxdepth 1` ; do \ + case $${filen} in \ + ./Makefile* | ./doxyfile* | ./images | ./input | ./static | ./CVS ) ;; \ + *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \ + esac ; \ done ; -install-data-local: usr_docs - $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH - @for filen in `find . -maxdepth 1` ; do \ +install-data-local: + @if [ -e main.html ]; then \ + $(INSTALL) -d $(DESTDIR)$(docdir)/gui/SMESH; \ + for filen in `find . -maxdepth 1` ; do \ case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_py ) ;; \ - ./doxyfile.bak | ./doxyfile_py.bak ) ;; \ + ./Makefile* | ./doxyfile* ) ;; \ . | .. | ./static ) ;; \ *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/SMESH ;; \ esac ; \ - done ; + done ; \ + fi uninstall-local: rm -rf $(DESTDIR)$(docdir)/gui/SMESH -- 2.39.2