~ubuntu-branches/ubuntu/precise/gnome-games/precise-proposed

« back to all changes in this revision

Viewing changes to aisleriot/icons/hildon/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-05-30 13:32:04 UTC
  • mfrom: (1.3.4)
  • mto: (163.1.3 precise)
  • mto: This revision was merged to the branch mainline in revision 143.
  • Revision ID: package-import@ubuntu.com-20110530133204-celaq1v1dsxc48q1
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
NULL =
 
2
 
 
3
public_icons_themes = hicolor
 
4
 
 
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.
 
8
#
 
9
# FIXME: check which sizes are required on maemo4 and maemo5
 
10
 
 
11
dist_noinst_DATA = \
 
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 \
 
18
        $(NULL)
 
19
 
 
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].
 
22
 
 
23
install-public-icons:
 
24
        for icon in $(dist_noinst_DATA); do \
 
25
                THEME=`echo $$icon | cut -d_ -f1`; \
 
26
                CONTEXT=hildon; \
 
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; \
 
31
        done
 
32
 
 
33
uninstall-public-icons:
 
34
        -for icon in $(dist_noinst_DATA); do \
 
35
                THEME=`echo $$icon | cut -d_ -f1`; \
 
36
                CONTEXT=hildon; \
 
37
                SIZE=`echo $$icon | cut -d_ -f3`; \
 
38
                ICONFILE=`echo $$icon | cut -d_ -f4`; \
 
39
                rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
 
40
        done
 
41
 
 
42
install-data-local: install-public-icons
 
43
uninstall-local: uninstall-public-icons
 
44
 
 
45
install-data-hook: update-icon-cache
 
46
uninstall-hook: update-icon-cache
 
47
 
 
48
gtk_update_icon_cache = gtk-update-icon-cache -f -t
 
49
 
 
50
update-icon-cache:
 
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; \
 
55
                done; \
 
56
        else \
 
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"; \
 
60
                done; \
 
61
        fi
 
62
 
 
63
-include $(top_srcdir)/git.mk