[the-board] [icons] Update icon cache on make install/uninstall



commit 2a4526d933c244ce821db8edd86950c2d0345063
Author: Lucas Rocha <lucasr gnome org>
Date:   Sun Nov 14 11:51:05 2010 +0000

    [icons] Update icon cache on make install/uninstall

 data/icons/Makefile.am |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index c3c47b7..e7fa51e 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -32,3 +32,16 @@ dist_icons16x16actions_DATA = \
 
 dist_icons16x16apps_DATA = \
     hicolor/16x16/apps/the-board.png
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(appsiconsdir)
+
+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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]