summaryrefslogtreecommitdiff
path: root/logview/data/icons/Makefile.am
diff options
context:
space:
mode:
authorBalló György <[email protected]>2015-07-29 01:53:34 +0200
committerBalló György <[email protected]>2015-07-29 01:53:34 +0200
commitb2d0d33f71a6586aecdcf2d5e2bd9df1d5c654cb (patch)
treeefb658ccf1f897c4147333ee981a5ab101be1cc2 /logview/data/icons/Makefile.am
parentdd59342cd39ce2a06c139baa560f6b9872c6d4dc (diff)
downloadmate-utils-b2d0d33f71a6586aecdcf2d5e2bd9df1d5c654cb.tar.bz2
mate-utils-b2d0d33f71a6586aecdcf2d5e2bd9df1d5c654cb.tar.xz
logviewer: Provide an application icon
Based on this commit in gnome-system-log: https://git.gnome.org/browse/gnome-system-log/commit/?id=f3f63c20a0b9fd9e791dde542292f9931de6e86f
Diffstat (limited to 'logview/data/icons/Makefile.am')
-rw-r--r--logview/data/icons/Makefile.am58
1 files changed, 58 insertions, 0 deletions
diff --git a/logview/data/icons/Makefile.am b/logview/data/icons/Makefile.am
new file mode 100644
index 00000000..a87353f7
--- /dev/null
+++ b/logview/data/icons/Makefile.am
@@ -0,0 +1,58 @@
+NULL =
+
+public_icons_themes = \
+ hicolor \
+ $(NULL)
+
+public_icons = \
+ hicolor_apps_16x16_mate-system-log.png \
+ hicolor_apps_22x22_mate-system-log.png \
+ hicolor_apps_32x32_mate-system-log.png \
+ hicolor_apps_48x48_mate-system-log.png \
+ hicolor_apps_256x256_mate-system-log.png \
+ hicolor_apps_scalable_mate-system-log-symbolic.svg \
+ $(NULL)
+
+EXTRA_DIST = \
+ $(public_icons) \
+ $(NULL)
+
+###############################################################################
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t
+
+update-icon-cache:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating Gtk icon cache."; \
+ for theme in $(public_icons_themes); do \
+ $(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
+ done; \
+ else \
+ echo "*** Icon cache not updated. After (un)install, run this:"; \
+ for theme in $(public_icons_themes); do \
+ echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
+ done; \
+ fi
+
+install-icons:
+ for icon in $(public_icons); do \
+ THEME=`echo $$icon | cut -d_ -f1`; \
+ CONTEXT=`echo $$icon | cut -d_ -f2`; \
+ SIZE=`echo $$icon | cut -d_ -f3`; \
+ ICONFILE=`echo $$icon | cut -d_ -f4`; \
+ mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
+ $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+ done
+
+uninstall-icons:
+ -for icon in $(public_icons); do \
+ THEME=`echo $$icon | cut -d_ -f1`; \
+ CONTEXT=`echo $$icon | cut -d_ -f2`; \
+ SIZE=`echo $$icon | cut -d_ -f3`; \
+ ICONFILE=`echo $$icon | cut -d_ -f4`; \
+ rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+ done
+
+install-data-local: install-icons update-icon-cache
+
+uninstall-local: uninstall-icons update-icon-cache