From eae892152f9eb99612cb981bbc5b037d15d5b00f Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Thu, 21 Feb 2013 15:37:19 +0000 Subject: [PATCH] [CONFIGURATION] * BUG: Uninstall should honor XDG_UTILS variable during 'make uninstall'. This fix building in ArchLinux. git-svn-id: svn://localhost/gambas/trunk@5556 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +