Salome HOME
Fix problem of make distcheck on automake 1.11 (Mandriva 2010):
authorvsr <vsr@opencascade.com>
Wed, 18 Apr 2012 12:46:07 +0000 (12:46 +0000)
committervsr <vsr@opencascade.com>
Wed, 18 Apr 2012 12:46:07 +0000 (12:46 +0000)
- we have to uninstall only the staff generated for doc files and nothing more

doc/salome/tui/Makefile.am

index c47dc52efc1465112f789ef2177450087fba4c51..987d26a43615ea2d85187e6e40b642ac3c4f5c64 100644 (file)
@@ -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