]> git.0d.be Git - empathy.git/blob - data/icons/Makefile.am
Cleanup icons: Regenerate icons from SVG at 16, 22, 24, 32 and 48 size. Change xmpp...
[empathy.git] / data / icons / Makefile.am
1 NULL =
2
3 public_icons_themes = \
4         hicolor \
5         $(NULL)
6
7 public_icons = \
8         hicolor_apps_16x16_empathy.png \
9         hicolor_apps_22x22_empathy.png \
10         hicolor_apps_24x24_empathy.png \
11         hicolor_apps_32x32_empathy.png \
12         hicolor_apps_48x48_empathy.png \
13         hicolor_apps_scalable_empathy.svg \
14         $(NULL)
15
16 private_icons = \
17         hicolor_actions_16x16_im-message-new.png \
18         hicolor_actions_22x22_im-message-new.png \
19         hicolor_actions_24x24_im-message-new.png \
20         hicolor_status_16x16_im-message.png \
21         hicolor_status_16x16_user-typing.png \
22         hicolor_apps_16x16_im-ekiga.png \
23         hicolor_apps_16x16_im-gizmo.png \
24         hicolor_apps_16x16_im-google-talk.png \
25         hicolor_apps_16x16_im-irc.png \
26         hicolor_apps_16x16_im-xmpp.png \
27         hicolor_apps_16x16_im-msn.png \
28         hicolor_apps_16x16_im-local-xmpp.png \
29         hicolor_apps_22x22_im-ekiga.png \
30         hicolor_apps_22x22_im-gizmo.png \
31         hicolor_apps_22x22_im-google-talk.png \
32         hicolor_apps_22x22_im-irc.png \
33         hicolor_apps_22x22_im-xmpp.png \
34         hicolor_apps_22x22_im-msn.png \
35         hicolor_apps_22x22_im-local-xmpp.png \
36         hicolor_apps_24x24_im-ekiga.png \
37         hicolor_apps_24x24_im-gizmo.png \
38         hicolor_apps_24x24_im-google-talk.png \
39         hicolor_apps_24x24_im-irc.png \
40         hicolor_apps_24x24_im-xmpp.png \
41         hicolor_apps_24x24_im-msn.png \
42         hicolor_apps_24x24_im-local-xmpp.png \
43         hicolor_apps_32x32_im-ekiga.png \
44         hicolor_apps_32x32_im-gizmo.png \
45         hicolor_apps_32x32_im-google-talk.png \
46         hicolor_apps_32x32_im-irc.png \
47         hicolor_apps_32x32_im-xmpp.png \
48         hicolor_apps_32x32_im-msn.png \
49         hicolor_apps_32x32_im-local-xmpp.png \
50         hicolor_apps_48x48_im-ekiga.png \
51         hicolor_apps_48x48_im-gizmo.png \
52         hicolor_apps_48x48_im-google-talk.png \
53         hicolor_apps_48x48_im-irc.png \
54         hicolor_apps_48x48_im-xmpp.png \
55         hicolor_apps_48x48_im-msn.png \
56         hicolor_apps_48x48_im-local-xmpp.png \
57         hicolor_apps_scalable_im-ekiga.svg \
58         hicolor_apps_scalable_im-gizmo.svg \
59         hicolor_apps_scalable_im-google-talk.svg \
60         hicolor_apps_scalable_im-irc.svg \
61         hicolor_apps_scalable_im-xmpp.svg \
62         hicolor_apps_scalable_im-msn.svg \
63         hicolor_apps_scalable_im-local-xmpp.svg \
64         hicolor_status_16x16_empathy-available.png \
65         hicolor_status_16x16_empathy-away.png \
66         hicolor_status_16x16_empathy-busy.png \
67         hicolor_status_16x16_empathy-extended-away.png \
68         hicolor_status_16x16_empathy-offline.png \
69         hicolor_status_16x16_empathy-pending.png \
70         hicolor_status_22x22_empathy-available.png \
71         hicolor_status_22x22_empathy-away.png \
72         hicolor_status_22x22_empathy-busy.png \
73         hicolor_status_22x22_empathy-extended-away.png \
74         hicolor_status_22x22_empathy-offline.png \
75         hicolor_status_22x22_empathy-pending.png \
76         hicolor_status_24x24_empathy-available.png \
77         hicolor_status_24x24_empathy-away.png \
78         hicolor_status_24x24_empathy-busy.png \
79         hicolor_status_24x24_empathy-extended-away.png \
80         hicolor_status_24x24_empathy-offline.png \
81         hicolor_status_24x24_empathy-pending.png \
82         hicolor_status_32x32_empathy-available.png \
83         hicolor_status_32x32_empathy-away.png \
84         hicolor_status_32x32_empathy-busy.png \
85         hicolor_status_32x32_empathy-extended-away.png \
86         hicolor_status_32x32_empathy-offline.png \
87         hicolor_status_32x32_empathy-pending.png \
88         hicolor_status_48x48_empathy-available.png \
89         hicolor_status_48x48_empathy-away.png \
90         hicolor_status_48x48_empathy-busy.png \
91         hicolor_status_48x48_empathy-extended-away.png \
92         hicolor_status_48x48_empathy-offline.png \
93         hicolor_status_48x48_empathy-pending.png \
94         hicolor_status_scalable_empathy-available.svg \
95         hicolor_status_scalable_empathy-away.svg \
96         hicolor_status_scalable_empathy-busy.svg \
97         hicolor_status_scalable_empathy-extended-away.svg \
98         hicolor_status_scalable_empathy-offline.svg \
99         hicolor_status_scalable_empathy-pending.svg \
100         $(NULL)
101
102 EXTRA_DIST = \
103         $(public_icons)         \
104         $(private_icons)        \
105         $(NULL)
106
107 ###############################################################################
108
109 gtk_update_icon_cache = gtk-update-icon-cache -f -t
110
111 update-icon-cache:
112         @-if test -z "$(DESTDIR)"; then \
113                 echo "Updating Gtk icon cache."; \
114                 for theme in $(public_icons_themes); do \
115                         $(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
116                 done; \
117         else \
118                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
119                 for theme in $(public_icons_themes); do \
120                         echo "***   $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
121                 done; \
122         fi
123
124 install-icons:
125         for icon in $(public_icons); do \
126                 THEME=`echo $$icon | cut -d_ -f1`; \
127                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
128                 SIZE=`echo $$icon | cut -d_ -f3`; \
129                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
130                 mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
131                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
132         done; \
133         for icon in $(private_icons); do \
134                 THEME=`echo $$icon | cut -d_ -f1`; \
135                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
136                 SIZE=`echo $$icon | cut -d_ -f3`; \
137                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
138                 mkdir -p $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
139                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
140         done
141
142 uninstall-icons:
143         -for icon in $(public_icons); do \
144                 THEME=`echo $$icon | cut -d_ -f1`; \
145                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
146                 SIZE=`echo $$icon | cut -d_ -f3`; \
147                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
148                 rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
149         done; \
150         for icon in $(private_icons); do \
151                 THEME=`echo $$icon | cut -d_ -f1`; \
152                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
153                 SIZE=`echo $$icon | cut -d_ -f3`; \
154                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
155                 rm -f $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
156         done
157
158 install-data-local: install-icons update-icon-cache
159
160 uninstall-local: uninstall-icons update-icon-cache