From 54c9bf5bbe37e83947e53c809e46914a907854d0 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Thu, 20 Mar 2008 11:49:34 +0000 Subject: [PATCH] call update-icon-cache (please test yourself) --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 48d2a9e..c13b762 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,5 +7,19 @@ sm_LDADD = $(DEPS_LIBS) icondir = $(datadir)/icons/hicolor/48x48/apps icon_DATA = sm.png +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: update-icon-cache +uninstall-hook: update-icon-cache +update-icon-cache: + @-if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. After (un)install, run this:"; \ + echo "*** $(gtk_update_icon_cache)"; \ + fi + + man_MANS = sm.1 EXTRA_DIST = sm.1 sm.py sm.png -- 2.20.1