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

doc/salome/tui/Makefile.am

index 459ea3379e29308ff5d580befaeffa81940ea733..bf44e17b25eb3ac13cd32a9cd9375f2ad01a33a7 100644 (file)
@@ -49,4 +49,13 @@ install-data-local:
        fi;
 
 uninstall-local:
-       rm -rf $(DESTDIR)$(docdir)/tui/GEOM
+       @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)/geomscreen.png ) ;; \
+           * ) echo "removing $${filen}" && rm -rf $${filen} ;; \
+         esac ; \
+       done