diff --git a/main/Makefile.am b/main/Makefile.am index 8dc036e91..20ca45198 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -27,5 +27,8 @@ install-exec-local: uninstall-local: @rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION) @rm -rf $(DESTDIR)$(gblibdir)/info - @xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; - @xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; + @if test x"$(XDG_UTILS)" != x; then \ + @xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; + @xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; + fi +