-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.icons.am
137 lines (121 loc) · 5.47 KB
/
Makefile.icons.am
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
# -- icons
hicolor_iconthemedir=$(datadir)/icons/hicolor
hicolor_icon16dir = $(hicolor_iconthemedir)/16x16/apps
hicolor_icon16_DATA = \
icons/hicolor/16x16/apps/buzztrax.png \
icons/hicolor/16x16/apps/buzztrax_menu_processor_machine.png \
icons/hicolor/16x16/apps/buzztrax_menu_sink_machine.png \
icons/hicolor/16x16/apps/buzztrax_menu_source_machine.png \
icons/hicolor/16x16/apps/buzztrax_tab_machines.png \
icons/hicolor/16x16/apps/buzztrax_tab_patterns.png \
icons/hicolor/16x16/apps/buzztrax_tab_sequence.png \
icons/hicolor/16x16/apps/buzztrax_tab_waves.png \
icons/hicolor/16x16/apps/buzztrax_tab_info.png
hicolor_icon24dir = $(hicolor_iconthemedir)/24x24/apps
hicolor_icon24_DATA = \
icons/hicolor/24x24/apps/buzztrax_menu_processor_machine.png \
icons/hicolor/24x24/apps/buzztrax_menu_sink_machine.png \
icons/hicolor/24x24/apps/buzztrax_menu_source_machine.png
hicolor_icon48dir = $(hicolor_iconthemedir)/48x48/apps
hicolor_icon48_DATA = \
icons/hicolor/48x48/apps/buzztrax.png
hicolor_svgicondir = $(hicolor_iconthemedir)/scalable/apps
hicolor_svgicon_DATA = \
icons/hicolor/scalable/apps/buzztrax.svg
gnome_iconthemedir=$(datadir)/icons/gnome
gnome_icon16dir = $(gnome_iconthemedir)/16x16/apps
gnome_icon16_DATA = \
icons/gnome/16x16/apps/buzztrax.png \
icons/gnome/16x16/apps/buzztrax_menu_processor_machine.png \
icons/gnome/16x16/apps/buzztrax_menu_sink_machine.png \
icons/gnome/16x16/apps/buzztrax_menu_source_machine.png \
icons/gnome/16x16/apps/buzztrax_tab_machines.png \
icons/gnome/16x16/apps/buzztrax_tab_patterns.png \
icons/gnome/16x16/apps/buzztrax_tab_sequence.png \
icons/gnome/16x16/apps/buzztrax_tab_waves.png
## icons/gnome/16x16/apps/buzztrax_tab_info.png
gnome_icon22dir = $(gnome_iconthemedir)/22x22/apps
gnome_icon22_DATA = \
icons/gnome/22x22/apps/buzztrax.png
gnome_icon24dir = $(gnome_iconthemedir)/24x24/apps
gnome_icon24_DATA = \
icons/gnome/24x24/apps/buzztrax.png \
icons/gnome/24x24/apps/buzztrax_menu_processor_machine.png \
icons/gnome/24x24/apps/buzztrax_menu_sink_machine.png \
icons/gnome/24x24/apps/buzztrax_menu_source_machine.png
gnome_icon32dir = $(gnome_iconthemedir)/32x32/apps
gnome_icon32_DATA = \
icons/gnome/32x32/apps/buzztrax.png \
icons/gnome/32x32/apps/buzztrax_effect_bypass.png \
icons/gnome/32x32/apps/buzztrax_effect_mute.png \
icons/gnome/32x32/apps/buzztrax_effect.png \
icons/gnome/32x32/apps/buzztrax_generator_mute.png \
icons/gnome/32x32/apps/buzztrax_generator_solo.png \
icons/gnome/32x32/apps/buzztrax_generator.png \
icons/gnome/32x32/apps/buzztrax_master_mute.png \
icons/gnome/32x32/apps/buzztrax_master.png \
icons/gnome/32x32/apps/buzztrax_wire.png \
icons/gnome/32x32/apps/buzztrax_wire_nopan.png
gnome_icon48dir = $(gnome_iconthemedir)/48x48/apps
gnome_icon48_DATA = \
icons/gnome/48x48/apps/buzztrax.png \
icons/gnome/48x48/apps/buzztrax_effect_bypass.png \
icons/gnome/48x48/apps/buzztrax_effect_mute.png \
icons/gnome/48x48/apps/buzztrax_effect.png \
icons/gnome/48x48/apps/buzztrax_generator_mute.png \
icons/gnome/48x48/apps/buzztrax_generator_solo.png \
icons/gnome/48x48/apps/buzztrax_generator.png \
icons/gnome/48x48/apps/buzztrax_master_mute.png \
icons/gnome/48x48/apps/buzztrax_master.png \
icons/gnome/48x48/apps/buzztrax_wire.png \
icons/gnome/48x48/apps/buzztrax_wire_nopan.png
gnome_icon64dir = $(gnome_iconthemedir)/64x64/apps
gnome_icon64_DATA = \
icons/gnome/64x64/apps/buzztrax.png \
icons/gnome/64x64/apps/buzztrax_effect_bypass.png \
icons/gnome/64x64/apps/buzztrax_effect_mute.png \
icons/gnome/64x64/apps/buzztrax_effect.png \
icons/gnome/64x64/apps/buzztrax_generator_mute.png \
icons/gnome/64x64/apps/buzztrax_generator_solo.png \
icons/gnome/64x64/apps/buzztrax_generator.png \
icons/gnome/64x64/apps/buzztrax_master_mute.png \
icons/gnome/64x64/apps/buzztrax_master.png \
icons/gnome/64x64/apps/buzztrax_wire.png \
icons/gnome/64x64/apps/buzztrax_wire_nopan.png
MACHINE_ICONS = \
icons/gnome/scalable/apps/buzztrax_effect_bypass.svg \
icons/gnome/scalable/apps/buzztrax_effect_mute.svg \
icons/gnome/scalable/apps/buzztrax_effect.svg \
icons/gnome/scalable/apps/buzztrax_generator_mute.svg \
icons/gnome/scalable/apps/buzztrax_generator_solo.svg \
icons/gnome/scalable/apps/buzztrax_generator.svg \
icons/gnome/scalable/apps/buzztrax_master_mute.svg \
icons/gnome/scalable/apps/buzztrax_master.svg \
icons/gnome/scalable/apps/buzztrax_wire.svg \
icons/gnome/scalable/apps/buzztrax_wire_nopan.svg
gnome_svgicondir = $(gnome_iconthemedir)/scalable/apps
gnome_svgicon_DATA = \
icons/gnome/scalable/apps/buzztrax.svg \
$(MACHINE_ICONS)
prescale-svg:
for size in 32 48 64; do \
for icon in $(MACHINE_ICONS); do \
rsvg-convert "$$icon" -w $$size -h $$size -f png -o "icons/gnome/$${size}x$${size}/apps/`basename $$icon .svg`.png"; \
done; \
done
EXTRA_DIST += \
$(gnome_icon16_DATA) $(gnome_icon22_DATA) $(gnome_icon24_DATA) \
$(gnome_icon32_DATA) $(gnome_icon48_DATA) $(gnome_icon64_DATA) $(gnome_svgicon_DATA) \
$(hicolor_icon16_DATA) $(hicolor_icon24_DATA) $(hicolor_icon48_DATA) $(hicolor_svgicon_DATA)
update-icon-cache:
if WITH_UPDATE_ICON_CACHE
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(UPDATE_ICON_CACHE) -f -t $(hicolor_iconthemedir); \
$(UPDATE_ICON_CACHE) -f -t $(gnome_iconthemedir); \
else \
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(UPDATE_ICON_CACHE) -f -t $(hicolor_iconthemedir)"; \
echo "*** $(UPDATE_ICON_CACHE) -f -t $(gnome_iconthemedir)"; \
fi
endif