From 4b89142dde3db6b75697e9a7bc4ede46cdd67f5d Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 9 Jun 2011 13:37:59 +0000 Subject: [PATCH] Fix problem of 'make uninstall' (and make distcheck) with automake 2.11 (Mandriva 2010) --- idl/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/idl/Makefile.am b/idl/Makefile.am index cfbe89c9d..e16582ec7 100644 --- a/idl/Makefile.am +++ b/idl/Makefile.am @@ -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 -- 2.39.2