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

doc/salome/tui/Makefile.am

index 09e286f17c0740aabb1149efe912d981f758b59c..ec6aeed3f49950154ea779b9cda73510afe4a351 100644 (file)
@@ -43,4 +43,13 @@ install-data-local:
        fi;
 
 uninstall-local:
-       rm -rf $(DESTDIR)$(docdir)/tui/VISU
+       @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)/visuscreen.png ) ;; \
+           * ) echo "removing $${filen}" && rm -rf $${filen} ;; \
+         esac ; \
+       done