Salome HOME
Fix make ditcheck problem
[samples/pycalculator.git] / doc / salome / tui / Makefile.am
index 3c03fa96671ebbbcd777e3a73170dc376ae7754f..060041d26a0a6886bca2f9f3ff098da2f3b7ea2d 100644 (file)
@@ -42,4 +42,11 @@ install-data-local:
        fi;
 
 uninstall-local:
-       rm -rf $(DESTDIR)$(docdir)/tui/PYCALCULATOR
+       @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)/head.png ) ;; \
+           * ) echo "removing $${filen}" && rm -rf $${filen} ;; \
+         esac ; \
+       done