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