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

« back to all changes in this revision

Viewing changes to aisleriot/icons/gnome/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
dist_noinst_DATA = \
 
6
        hicolor/16x16/apps/gnome-aisleriot.png \
 
7
        hicolor/22x22/apps/gnome-aisleriot.png \
 
8
        hicolor/24x24/apps/gnome-aisleriot.png \
 
9
        hicolor/26x26/apps/gnome-aisleriot.png \
 
10
        hicolor/32x32/apps/gnome-aisleriot.png \
 
11
        hicolor/34x34/apps/gnome-aisleriot.png \
 
12
        hicolor/40x40/apps/gnome-aisleriot.png \
 
13
        hicolor/48x48/apps/gnome-aisleriot.png \
 
14
        hicolor/50x50/apps/gnome-aisleriot.png \
 
15
        hicolor/64x50/apps/gnome-aisleriot.png \
 
16
        hicolor/256x256/apps/gnome-aisleriot.png \
 
17
        hicolor/16x16/apps/gnome-freecell.png \
 
18
        hicolor/22x22/apps/gnome-freecell.png \
 
19
        hicolor/24x24/apps/gnome-freecell.png \
 
20
        hicolor/32x32/apps/gnome-freecell.png \
 
21
        hicolor/48x48/apps/gnome-freecell.png \
 
22
        $(NULL)
 
23
 
 
24
install-public-icons:
 
25
        for icon in $(dist_noinst_DATA); do \
 
26
                THEME=`echo $$icon | cut -d/ -f1`; \
 
27
                SIZE=`echo $$icon | cut -d/ -f2`; \
 
28
                CONTEXT=`echo $$icon | cut -d/ -f3`; \
 
29
                ICONFILE=`echo $$icon | cut -d/ -f4`; \
 
30
                mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
 
31
                $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
 
32
        done
 
33
 
 
34
uninstall-public-icons:
 
35
        -for icon in $(dist_noinst_DATA); do \
 
36
                THEME=`echo $$icon | cut -d/ -f1`; \
 
37
                SIZE=`echo $$icon | cut -d/ -f2`; \
 
38
                CONTEXT=`echo $$icon | cut -d/ -f3`; \
 
39
                ICONFILE=`echo $$icon | cut -d/ -f4`; \
 
40
                rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
 
41
        done
 
42
 
 
43
install-data-local: install-public-icons
 
44
uninstall-local: uninstall-public-icons
 
45
 
 
46
install-data-hook: update-icon-cache
 
47
uninstall-hook: update-icon-cache
 
48
 
 
49
gtk_update_icon_cache = gtk-update-icon-cache -f -t
 
50
 
 
51
update-icon-cache:
 
52
        @-if test -z "$(DESTDIR)"; then \
 
53
                echo "Updating Gtk icon cache."; \
 
54
                for theme in $(public_icons_themes); do \
 
55
                        $(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
 
56
                done; \
 
57
        else \
 
58
                echo "*** Icon cache not updated.  After (un)install, run this:"; \
 
59
                for theme in $(public_icons_themes); do \
 
60
                        echo "***   $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
 
61
                done; \
 
62
        fi
 
63
 
 
64
-include $(top_srcdir)/git.mk