3
public_icons_themes = hicolor
5
# These sizes work for maemo3 at least. The "scalable" icon really
6
# is a 64x54 icon, which is the size that apparently is required for
7
# the app menu on maemo3.
9
# FIXME: check which sizes are required on maemo4 and maemo5
12
hicolor_apps_16x16_gnome-aisleriot.png \
13
hicolor_apps_26x26_gnome-aisleriot.png \
14
hicolor_apps_34x34_gnome-aisleriot.png \
15
hicolor_apps_40x40_gnome-aisleriot.png \
16
hicolor_apps_50x50_gnome-aisleriot.png \
17
hicolor_apps_scalable_gnome-aisleriot.png \
20
# The extra treatment for Hildon is necessary because hildon only looks for
21
# icons in the "hildon" context [https://bugs.maemo.org/show_bug.cgi?id=4766].
24
for icon in $(dist_noinst_DATA); do \
25
THEME=`echo $$icon | cut -d_ -f1`; \
27
SIZE=`echo $$icon | cut -d_ -f3`; \
28
ICONFILE=`echo $$icon | cut -d_ -f4`; \
29
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
30
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
33
uninstall-public-icons:
34
-for icon in $(dist_noinst_DATA); do \
35
THEME=`echo $$icon | cut -d_ -f1`; \
37
SIZE=`echo $$icon | cut -d_ -f3`; \
38
ICONFILE=`echo $$icon | cut -d_ -f4`; \
39
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
42
install-data-local: install-public-icons
43
uninstall-local: uninstall-public-icons
45
install-data-hook: update-icon-cache
46
uninstall-hook: update-icon-cache
48
gtk_update_icon_cache = gtk-update-icon-cache -f -t
51
@-if test -z "$(DESTDIR)"; then \
52
echo "Updating Gtk icon cache."; \
53
for theme in $(public_icons_themes); do \
54
$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
57
echo "*** Icon cache not updated. After (un)install, run this:"; \
58
for theme in $(public_icons_themes); do \
59
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
63
-include $(top_srcdir)/git.mk