From: vsr Date: Wed, 18 Apr 2012 12:46:07 +0000 (+0000) Subject: Fix problem of make distcheck on automake 1.11 (Mandriva 2010): X-Git-Tag: TRIPOLI_323~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2cafde6609d73b3bf1c98e4c2d498d8fbdc3d904;p=modules%2Fsmesh.git Fix problem of make distcheck on automake 1.11 (Mandriva 2010): - we have to uninstall only the staff generated for doc files and nothing more --- diff --git a/doc/salome/tui/Makefile.am b/doc/salome/tui/Makefile.am index c47dc52ef..987d26a43 100644 --- a/doc/salome/tui/Makefile.am +++ b/doc/salome/tui/Makefile.am @@ -42,4 +42,13 @@ install-data-local: fi; uninstall-local: - rm -rf $(DESTDIR)$(docdir)/tui/SMESH + @test -d $(DESTDIR)$(tuidocdir) && chmod -R +w $(DESTDIR)$(tuidocdir) ; \ + for filen in `find $(DESTDIR)$(tuidocdir) -mindepth 1 -maxdepth 1` dummy ; do \ + case $${filen} in \ + dummy ) ;; \ + $(DESTDIR)$(tuidocdir)/docutils ) ;; \ + $(DESTDIR)$(tuidocdir)/head.png ) ;; \ + $(DESTDIR)$(tuidocdir)/smeshscreen.png ) ;; \ + * ) echo "removing $${filen}" && rm -rf $${filen} ;; \ + esac ; \ + done