sync
authorAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 06:33:34 +0000 (14:33 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 06:33:34 +0000 (14:33 +0800)
pixmaps/Makefile.am [new file with mode: 0644]

diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
new file mode 100644 (file)
index 0000000..ce4cec6
--- /dev/null
@@ -0,0 +1,24 @@
+
+
+
+iconsdir = $(datadir)/icons/hicolor
+
+nobase_dist_icons_DATA = \
+    16x16/apps/roobuilder.png \
+    22x22/apps/roobuilder.png \
+    24x24/apps/roobuilder.png \
+    32x32/apps/roobuilder.png \
+    48x48/apps/roobuilder.png
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir)
+
+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