]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0021196: [CEA 456] Integration and merge modification for debian packages
authoreap <eap@opencascade.com>
Wed, 2 Mar 2011 16:26:06 +0000 (16:26 +0000)
committereap <eap@opencascade.com>
Wed, 2 Mar 2011 16:26:06 +0000 (16:26 +0000)
visu-install-without-docs.patch
  We think that building and installing the documentation should not
  be the default behavior but reserved to interested users

visu-fix-clean.patch
  This patch is for cleaning completely the build directory

doc/salome/gui/VISU/Makefile.am

index 0dd6bca0cd906f4145a2ccc2388256040bca9585..eddae8697348de67eac4fbc8c32b7e67f2ff6193 100644 (file)
@@ -43,22 +43,23 @@ docs: usr_docs
 clean-local:
        @for filen in `find . -maxdepth 1` ; do                 \
          case $${filen} in                                     \
-           ./Makefile | ./doxyfile | ./doxyfile_idl ) ;;       \
-           . | .. | ./static ) ;;                              \
+           ./Makefile* | ./doxyfile* | ./images | ./input | ./static ) ;;      \
+           . | .. | ./CVS ) ;;                         \
            *) echo "Removing $${filen}" ; rm -rf $${filen} ;;  \
          esac ;                                                \
        done ;
 
-install-data-local: usr_docs
-       $(INSTALL) -d $(DESTDIR)$(docdir)/gui/VISU
-       @for filen in `find . -maxdepth 1` ; do                                                 \
+install-data-local:
+       @if [ -e main.html ]; then \
+       $(INSTALL) -d $(DESTDIR)$(docdir)/gui/VISU ; \
+       for filen in `find . -maxdepth 1` ; do                                                  \
          case $${filen} in                                                                     \
-           ./Makefile | ./doxyfile | ./doxyfile_idl ) ;;                                       \
-           ./doxyfile.bak | ./doxyfile_idl.bak ) ;;                                            \
+           ./Makefile* | ./doxyfile* ) ;;                                                      \
            . | .. | ./static ) ;;                                                              \
            *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/VISU ;;   \
          esac ;                                                                                \
-       done ;
+       done ; \
+       fi
 
 uninstall-local:
        rm -rf $(DESTDIR)$(docdir)/gui/VISU