Salome HOME
Fix problem of 'make uninstall' (and make distcheck) with automake 2.11 (Mandriva...
authorvsr <vsr@opencascade.com>
Thu, 9 Jun 2011 13:37:59 +0000 (13:37 +0000)
committervsr <vsr@opencascade.com>
Thu, 9 Jun 2011 13:37:59 +0000 (13:37 +0000)
idl/Makefile.am

index cfbe89c9ddc1099545e53bca27782bee5d045b79..e16582ec7a01f479a6dec02bd8de05a1f21ca9a1 100644 (file)
@@ -297,7 +297,14 @@ endif
 
 # uninstall-local removes too much, but it works in distcheck
 uninstall-local:
-       rm -rf $(DESTDIR)$(salomepythondir)/*
+       for filen in `find $(DESTDIR)$(salomepythondir) -maxdepth 1` ; do \
+         case $${filen} in                                               \
+         $(DESTDIR)$(salomepythondir) )    ;;                            \
+         $(DESTDIR)$(salomepypkgdir) )     ;;                            \
+         $(DESTDIR)$(sharedpkgpythondir) ) ;;                            \
+         * ) rm -rf $${filen} ;;                                         \
+         esac ;                                                          \
+       done ;
 
 mostlyclean-local:
        -rm -f *.hh *.cc .depidl Calcium_Ports.idl