aboutsummaryrefslogtreecommitdiffstats
path: root/data/icons/Makefile.am
blob: 2312afcfb9d77d09c47b27efd2f44f234d8b7225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
NULL =

public_icons = \
    hicolor_apps_16x16_evolution.png \
    hicolor_apps_16x16_evolution-mail.png \
    hicolor_apps_16x16_evolution-memos.png \
    hicolor_apps_16x16_evolution-tasks.png \
    hicolor_apps_22x22_evolution.png \
    hicolor_apps_22x22_evolution-mail.png \
    hicolor_apps_22x22_evolution-memos.png \
    hicolor_apps_22x22_evolution-tasks.png \
    hicolor_apps_24x24_evolution.png \
    hicolor_apps_24x24_evolution-mail.png \
    hicolor_apps_24x24_evolution-memos.png \
    hicolor_apps_24x24_evolution-tasks.png \
    hicolor_apps_32x32_evolution.png \
    hicolor_apps_32x32_evolution-mail.png \
    hicolor_apps_32x32_evolution-memos.png \
    hicolor_apps_32x32_evolution-tasks.png \
    hicolor_apps_48x48_evolution.png \
    hicolor_apps_48x48_evolution-mail.png \
    hicolor_apps_48x48_evolution-memos.png \
    hicolor_apps_48x48_evolution-tasks.png \
    hicolor_apps_scalable_evolution.svg \
    $(NULL)

private_icons = \
    hicolor_apps_16x16_contact-editor.png \
    hicolor_apps_22x22_contact-editor.png \
    hicolor_apps_24x24_contact-editor.png \
    hicolor_apps_32x32_contact-editor.png \
    hicolor_apps_48x48_contact-editor.png \
    hicolor_actions_16x16_folder-copy.png \
    hicolor_actions_16x16_folder-move.png \
    hicolor_actions_16x16_mail-copy.png \
    hicolor_actions_16x16_mail-move.png \
    hicolor_actions_16x16_go-today.png \
    hicolor_actions_16x16_view-calendar-day.png \
    hicolor_actions_16x16_view-calendar-list.png \
    hicolor_actions_16x16_view-calendar-month.png \
    hicolor_actions_16x16_view-calendar-week.png \
    hicolor_actions_16x16_view-calendar-workweek.png \
    hicolor_actions_22x22_go-today.png \
    hicolor_actions_22x22_view-calendar-day.png \
    hicolor_actions_22x22_view-calendar-list.png \
    hicolor_actions_22x22_view-calendar-month.png \
    hicolor_actions_22x22_view-calendar-week.png \
    hicolor_actions_22x22_view-calendar-workweek.png \
    hicolor_actions_24x24_go-today.png \
    hicolor_actions_24x24_query-free-busy.png \
    hicolor_actions_24x24_view-calendar-day.png \
    hicolor_actions_24x24_view-calendar-list.png \
    hicolor_actions_24x24_view-calendar-month.png \
    hicolor_actions_24x24_view-calendar-week.png \
    hicolor_actions_24x24_view-calendar-workweek.png \
    hicolor_actions_32x32_view-calendar-day.png \
    hicolor_actions_32x32_view-calendar-list.png \
    hicolor_actions_32x32_view-calendar-month.png \
    hicolor_actions_32x32_view-calendar-week.png \
    hicolor_actions_32x32_view-calendar-workweek.png \
    hicolor_actions_scalable_view-calendar-day.svg \
    hicolor_actions_scalable_view-calendar-list.svg \
    hicolor_actions_scalable_view-calendar-month.svg \
    hicolor_actions_scalable_view-calendar-week.svg \
    hicolor_actions_scalable_view-calendar-workweek.svg \
    hicolor_categories_48x48_preferences-autocompletion.png \
    hicolor_categories_48x48_preferences-calendar-and-tasks.png \
    hicolor_categories_48x48_preferences-certificates.png \
    hicolor_categories_48x48_preferences-composer.png \
    hicolor_categories_48x48_preferences-mail.png \
    hicolor_categories_48x48_preferences-mail-accounts.png \
    hicolor_categories_48x48_preferences-system-network-proxy.png \
    hicolor_places_16x16_mail-inbox.png \
    hicolor_places_16x16_mail-outbox.png \
    hicolor_places_16x16_mail-sent.png \
    hicolor_places_22x22_mail-inbox.png \
    hicolor_places_22x22_mail-outbox.png \
    hicolor_places_22x22_mail-sent.png \
    hicolor_places_24x24_mail-inbox.png \
    hicolor_places_24x24_mail-outbox.png \
    hicolor_places_24x24_mail-sent.png \
    hicolor_status_16x16_wrapped.png \
    hicolor_status_32x32_offline.png \
    hicolor_status_32x32_online.png \
    $(NULL)

# These icons were in gnome-icon-theme prior to GNOME 2.30.
# XXX Need to reevaluate which icons we really need and drop the rest.
#     Many are not Tango-compliant and look dated and out of place.
stock_private_icons = \
    hicolor_actions_16x16_stock_bell.png \
    hicolor_actions_16x16_stock_contact-list.png \
    hicolor_actions_16x16_stock_insert-note.png \
    hicolor_actions_16x16_stock_insert-rule.png \
    hicolor_actions_16x16_stock_insert-table.png \
    hicolor_actions_16x16_stock_mail-filters-apply.png \
    hicolor_actions_16x16_stock_mail-flag-for-followup-done.png \
    hicolor_actions_16x16_stock_mail-flag-for-followup.png \
    hicolor_actions_16x16_stock_mail-open-multiple.png \
    hicolor_actions_16x16_stock_mail-unread-multiple.png \
    hicolor_actions_16x16_stock_new-24h-appointment.png \
    hicolor_actions_16x16_stock_new-meeting.png \
    hicolor_actions_16x16_stock_notes.png \
    hicolor_actions_16x16_stock_people.png \
    hicolor_actions_16x16_stock_select-column.png \
    hicolor_actions_16x16_stock_select-row.png \
    hicolor_actions_16x16_stock_shared-by-me.png \
    hicolor_actions_16x16_stock_shared-to-me.png \
    hicolor_actions_16x16_stock_show-all.png \
    hicolor_actions_16x16_stock_task-assigned-to.png \
    hicolor_actions_16x16_stock_task-assigned.png \
    hicolor_actions_16x16_stock_task-recurring.png \
    hicolor_actions_16x16_stock_task.png \
    hicolor_actions_16x16_stock_text-monospaced.png \
    hicolor_actions_16x16_stock_timezone.png \
    hicolor_actions_16x16_stock_todo.png \
    hicolor_actions_16x16_stock_video-conferencing.png \
    hicolor_actions_16x16_stock_view-details.png \
    hicolor_actions_24x24_stock_new-24h-appointment.png \
    hicolor_actions_24x24_stock_contact-list.png \
    hicolor_actions_24x24_stock_insert-note.png \
    hicolor_actions_24x24_stock_insert-rule.png \
    hicolor_actions_24x24_stock_insert-table.png \
    hicolor_actions_24x24_stock_mail-filters-apply.png \
    hicolor_actions_24x24_stock_mail-open-multiple.png \
    hicolor_actions_24x24_stock_mail-unread-multiple.png \
    hicolor_actions_24x24_stock_new-meeting.png \
    hicolor_actions_24x24_stock_notes.png \
    hicolor_actions_24x24_stock_people.png \
    hicolor_actions_24x24_stock_select-column.png \
    hicolor_actions_24x24_stock_select-row.png \
    hicolor_actions_24x24_stock_shared-by-me.png \
    hicolor_actions_24x24_stock_shared-to-me.png \
    hicolor_actions_24x24_stock_show-all.png \
    hicolor_actions_24x24_stock_task-assigned-to.png \
    hicolor_actions_24x24_stock_task-assigned.png \
    hicolor_actions_24x24_stock_task-recurring.png \
    hicolor_actions_24x24_stock_task.png \
    hicolor_actions_24x24_stock_text-monospaced.png \
    hicolor_actions_24x24_stock_timezone.png \
    hicolor_actions_24x24_stock_todo.png \
    hicolor_actions_24x24_stock_video-conferencing.png \
    hicolor_actions_48x48_stock_alarm.png \
    hicolor_actions_48x48_stock_mail-flag-for-followup-done.png \
    hicolor_actions_48x48_stock_mail-flag-for-followup.png \
    hicolor_actions_48x48_stock_new-24h-appointment.png \
    hicolor_actions_48x48_stock_new-meeting.png \
    hicolor_actions_48x48_stock_notes.png \
    hicolor_actions_48x48_stock_people.png \
    hicolor_actions_48x48_stock_timezone.png \
    hicolor_actions_48x48_stock_todo.png \
    hicolor_status_16x16_stock_check-filled.png \
    hicolor_status_16x16_stock_score-high.png \
    hicolor_status_16x16_stock_score-higher.png \
    hicolor_status_16x16_stock_score-highest.png \
    hicolor_status_16x16_stock_score-low.png \
    hicolor_status_16x16_stock_score-lower.png \
    hicolor_status_16x16_stock_score-lowest.png \
    hicolor_status_16x16_stock_score-normal.png \
    hicolor_status_16x16_stock_signature-bad.png \
    hicolor_status_16x16_stock_signature-ok.png \
    hicolor_status_16x16_stock_signature.png \
    hicolor_status_24x24_stock_signature-bad.png \
    hicolor_status_24x24_stock_signature-ok.png \
    hicolor_status_24x24_stock_signature.png \
    hicolor_status_48x48_stock_signature-bad.png \
    hicolor_status_48x48_stock_signature-ok.png \
    hicolor_status_48x48_stock_signature.png \
    $(NULL)

# hicolor_status_16x16_wrapped.png was copied from Firefox
# (toolkit/themes/gnomestripe/global/icons/wrap.png), which
# contained the following notice:
#
#     All files in this directory are assumed to be licensed under the
#     tri-license (MPL/GPL/LGPL) used throughout this codebase.
#
# There is no corresponding SVG file. */

noinst_DATA = \
    hicolor_actions_16x16_go-today.svg \
    hicolor_actions_16x16_view-calendar-day.svg \
    hicolor_actions_16x16_view-calendar-list.svg \
    hicolor_actions_16x16_view-calendar-month.svg \
    hicolor_actions_16x16_view-calendar-week.svg \
    hicolor_actions_16x16_view-calendar-workweek.svg \
    hicolor_actions_22x22_go-today.svg \
    hicolor_actions_22x22_view-calendar-day.svg \
    hicolor_actions_22x22_view-calendar-list.svg \
    hicolor_actions_22x22_view-calendar-month.svg \
    hicolor_actions_22x22_view-calendar-week.svg \
    hicolor_actions_22x22_view-calendar-workweek.svg \
    hicolor_actions_32x32_view-calendar-day.svg \
    hicolor_actions_32x32_view-calendar-list.svg \
    hicolor_actions_32x32_view-calendar-month.svg \
    hicolor_actions_32x32_view-calendar-week.svg \
    hicolor_actions_32x32_view-calendar-workweek.svg \
    hicolor_places_16x16_mail-inbox.svg \
    hicolor_places_16x16_mail-outbox.svg \
    hicolor_places_16x16_mail-sent.svg \
    hicolor_places_22x22_mail-inbox.svg \
    hicolor_places_22x22_mail-outbox.svg \
    hicolor_places_22x22_mail-sent.svg \
    hicolor_status_32x32_offline.svg \
    hicolor_status_32x32_online.svg \
    $(NULL)

EXTRA_DIST = \
    $(public_icons)     \
    $(private_icons)    \
    $(stock_private_icons)  \
    $(noinst_DATA)      \
    $(NULL)

###############################################################################

gtk_update_icon_cache = gtk-update-icon-cache -f -t

update-icon-cache:
    @-if test -z "$(DESTDIR)"; then \
        echo "Updating Gtk icon cache."; \
        $(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
    else \
        echo "*** Icon cache not updated.  After (un)install, run this:"; \
        echo "***   $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \
    fi

install-icons:
    for icon in $(public_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f4`; \
        mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
        $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
    done; \
    for icon in $(private_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f4`; \
        mkdir -p $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT; \
        $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
    done
    for icon in $(stock_private_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f5`; \
        mkdir -p $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT; \
        $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT/stock_$$ICONFILE; \
    done

uninstall-icons:
    -for icon in $(public_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f4`; \
        rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
    done; \
    for icon in $(private_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f4`; \
        rm -f $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
    done
    for icon in $(stock_private_icons); do \
        THEME=`echo $$icon | cut -d_ -f1`; \
        CONTEXT=`echo $$icon | cut -d_ -f2`; \
        SIZE=`echo $$icon | cut -d_ -f3`; \
        ICONFILE=`echo $$icon | cut -d_ -f5`; \
        rm -f $(DESTDIR)$(pkgdatadir)/$(BASE_VERSION)/icons/$$THEME/$$SIZE/$$CONTEXT/stock_$$ICONFILE; \
    done

install-data-local: install-icons update-icon-cache

uninstall-local: uninstall-icons update-icon-cache

-include $(top_srcdir)/git.mk