--- a/src/mime/Makefile.am +++ b/src/mime/Makefile.am @@ -16,31 +16,3 @@ EXTRA_DIST = \ $(xdgmime_DATA) \ $(mimeicon_DATA) \ $(pixmap_DATA) - -## Update mime only when system wide installation takes place - -install-data-hook: install-xdgmimeDATA - if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \ - if which update-mime-database>/dev/null 2>&1; then \ - update-mime-database $(DESTDIR)$(datadir)/mime; \ - fi; \ - if which update-desktop-database>/dev/null 2>&1; then \ - update-desktop-database; \ - fi; \ - if which gtk-update-icon-cache>/dev/null 2>&1; then \ - gtk-update-icon-cache --force $(DESTDIR)$(datadir)/icons/hicolor; \ - fi \ - fi - -uninstall-hook: - if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \ - if which update-mime-database>/dev/null 2>&1; then \ - update-mime-database $(DESTDIR)$(datadir)/mime; \ - fi; \ - if which update-desktop-database>/dev/null 2>&1; then \ - update-desktop-database; \ - fi; \ - if which gtk-update-icon-cache>/dev/null 2>&1; then \ - gtk-update-icon-cache --force $(DESTDIR)$(datadir)/icons/hicolor; \ - fi \ - fi