Make translatable some strings from previous commits
[synfig.git] / synfig-studio / images / Makefile.am
1 SYNFIG = synfig
2
3 EXT = @imageext@
4
5
6 EXTRA_DIST = \
7         installer_logo.sif \
8         installer_logo_osx.sif \
9         splash_screen.sifz \
10         splash_screen-0.61.09.sif\
11         splash_screen-0.61.08.sif \
12         splash_screen-0.61.07.sif \
13         about_icon.sif \
14         angle_icon.sif \
15         bline_icon.sif \
16         blinepoint_icon.sif \
17         bool_icon.sif \
18         canvas_icon.sif \
19         canvas_pointer_icon.sif \
20         children_icon.sif \
21         circle_icon.sif \
22         clear_redo_icon.sif \
23         clear_undo_icon.sif \
24         color_icon.sif \
25         curves_icon.sif \
26         draw_icon.sif \
27         duplicate_icon.sif \
28         encapsulate_icon.sif \
29         eyedrop_icon.sif \
30         fill_icon.sif \
31         gradient_icon.sif \
32         group_icon.sif \
33         info_icon.sif \
34         integer_icon.sif \
35         keyframe_icon.sif \
36         keyframe_lock_icon.sif \
37         layer_icon.sif \
38         list_icon.sif \
39         logo.sif \
40         meta_data_icon.sif \
41         mirror_icon.sif \
42         navigator_icon.sif \
43         normal_icon.sif \
44         pastecanvas_icon.sif \
45         polygon_icon.sif \
46         real_icon.sif \
47         rectangle_icon.sif \
48         rotate_icon.sif \
49         saveall_icon.sif \
50         scale_icon.sif \
51         segment_icon.sif \
52         select_all_child_layers_icon.sif \
53         sif_icon.sif \
54         sketch_icon.sif \
55         smooth_move_icon.sif \
56         string_icon.sif \
57         reset_colors_icon.sif \
58         swap_colors_icon.sif \
59         synfig_icon.sif \
60         synfig_icon.svg \
61         time_icon.sif \
62         time_track_icon.sif \
63         valuenode_icon.sif \
64         vector_icon.sif \
65         wallpaper.sif \
66         width_icon.sif \
67         zoom_icon.sif \
68         rename_icon.sif \
69         plant_icon.sif \
70         text_icon.sif \
71         polyline_icon.sif \
72         star_icon.sif \
73         set_fill_color.sif \
74         set_outline_color.sif \
75         seek_begin.sif \
76         seek_end.sif \
77         seek_next_frame.sif \
78         seek_prev_frame.sif \
79         duck_position_icon.sif \
80         duck_vertex_icon.sif \
81         duck_tangent_icon.sif \
82         duck_radius_icon.sif \
83         duck_width_icon.sif \
84         duck_angle_icon.sif \
85         show_grid_icon.sif \
86         snap_grid_icon.sif \
87         onion_skin_icon.sif \
88         incr_resolution_icon.sif \
89         decr_resolution_icon.sif \
90         render_options_icon.sif \
91         preview_options_icon.sif
92
93 IMAGES = \
94         installer_logo.$(EXT) \
95         installer_logo_osx.$(EXT) \
96         mirror_icon.$(EXT) \
97         time_icon.$(EXT) \
98         time_track_icon.$(EXT) \
99         curves_icon.$(EXT) \
100         pastecanvas_icon.$(EXT) \
101         group_icon.$(EXT) \
102         clear_redo_icon.$(EXT) \
103         clear_undo_icon.$(EXT) \
104         navigator_icon.$(EXT) \
105         info_icon.$(EXT) \
106         zoom_icon.$(EXT) \
107         meta_data_icon.$(EXT) \
108         children_icon.$(EXT) \
109         keyframe_icon.$(EXT) \
110         reset_colors_icon.$(EXT) \
111         swap_colors_icon.$(EXT) \
112         rotate_icon.$(EXT) \
113         scale_icon.$(EXT) \
114         smooth_move_icon.$(EXT) \
115         width_icon.$(EXT) \
116         rectangle_icon.$(EXT) \
117         circle_icon.$(EXT) \
118         draw_icon.$(EXT) \
119         sketch_icon.$(EXT) \
120         fill_icon.$(EXT) \
121         normal_icon.$(EXT) \
122         select_all_child_layers_icon.$(EXT) \
123         sif_icon.$(EXT) \
124         synfig_icon.$(EXT) \
125         saveall_icon.$(EXT) \
126         bool_icon.$(EXT) \
127         integer_icon.$(EXT) \
128         angle_icon.$(EXT) \
129         segment_icon.$(EXT) \
130         blinepoint_icon.$(EXT) \
131         list_icon.$(EXT) \
132         canvas_pointer_icon.$(EXT) \
133         string_icon.$(EXT) \
134         eyedrop_icon.$(EXT) \
135         about_icon.$(EXT) \
136         splash_screen.$(EXT) \
137         canvas_icon.$(EXT) \
138         vector_icon.$(EXT) \
139         real_icon.$(EXT) \
140         color_icon.$(EXT) \
141         valuenode_icon.$(EXT) \
142         polygon_icon.$(EXT) \
143         bline_icon.$(EXT) \
144         layer_icon.$(EXT) \
145         duplicate_icon.$(EXT) \
146         encapsulate_icon.$(EXT) \
147         gradient_icon.$(EXT) \
148         keyframe_lock_all.$(EXT) \
149         keyframe_lock_past.$(EXT) \
150         keyframe_lock_future.$(EXT) \
151         keyframe_lock_none.$(EXT) \
152         rename_icon.$(EXT) \
153         plant_icon.$(EXT) \
154         text_icon.$(EXT) \
155         polyline_icon.$(EXT) \
156         star_icon.$(EXT) \
157         set_fill_color.$(EXT) \
158         set_outline_color.$(EXT) \
159         seek_begin.$(EXT) \
160         seek_end.$(EXT) \
161         seek_next_frame.$(EXT) \
162         seek_prev_frame.$(EXT) \
163         duck_position_icon.$(EXT) \
164         duck_vertex_icon.$(EXT) \
165         duck_tangent_icon.$(EXT) \
166         duck_radius_icon.$(EXT) \
167         duck_width_icon.$(EXT) \
168         duck_angle_icon.$(EXT) \
169         show_grid_icon.$(EXT) \
170         snap_grid_icon.$(EXT) \
171         onion_skin_icon.$(EXT) \
172         incr_resolution_icon.$(EXT) \
173         decr_resolution_icon.$(EXT) \
174         render_options_icon.$(EXT) \
175         preview_options_icon.$(EXT)
176
177
178 MAINTAINERCLEANFILES = \
179         Makefile.in
180
181
182 CLEANFILES = \
183         $(IMAGES) \
184         images.nsh \
185         unimages.nsh \
186         installer_logo.bmp \
187         sif_icon.ico \
188         synfig_icon.ico \
189         icons.nsh \
190         unicons.nsh
191
192 CLEANDIRS = \
193         16x16 \
194         22x22 \
195         24x24 \
196         32x32 \
197         48x48 \
198         64x64 \
199         128x128
200
201 image_DATA = $(IMAGES)
202
203
204 all: $(IMAGES)
205
206 SUFFIXES = .sif .tif .png
207
208 #.SUFFIXES: $(SUFFIXES)
209
210 PNGTOICO = png2ico
211
212 .sif.ico:
213         $(SYNFIG) $< -w 16 -h 16 -o $*-16x16.png $< -w 32 -h 32 -o $*-32x32.png $< -w 48 -h 48 -o $*-48x48.png $< -w 64 -h 64 -o $*-64x64.png
214         cp -f `which $(PNGTOICO)`.* ./
215         $(PNGTOICO) $@ $*-16x16.png $*-32x32.png $*-48x48.png $*-64x64.png
216         rm -f ./$(PNGTOICO).* $*-16x16.png $*-32x32.png $*-48x48.png $*-64x64.png
217         echo "  File \"images\\$@\"" >>./icons.nsh
218         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unicons.nsh
219
220 clean-local:
221         $(RM) -r $(CLEANDIRS)
222
223 .sif.bmp:
224         $(SYNFIG) -q $< -o $@ --time 0
225
226 .sif.$(EXT):
227         $(SYNFIG) -q $< -o $@ --time 0
228         echo "  File \"images\\$@\"" >>./images.nsh
229         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
230
231 .sifz.$(EXT):
232         $(SYNFIG) -q $< -o $@ --time 0
233         echo "  File \"images\\$@\"" >>./images.nsh
234         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
235
236 keyframe_lock_all.$(EXT): $(srcdir)/keyframe_lock_icon.sif
237         $(SYNFIG) -q $< -o $@ --time 0
238         echo "  File \"images\\$@\"" >>./images.nsh
239         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
240
241 keyframe_lock_past.$(EXT): $(srcdir)/keyframe_lock_icon.sif
242         $(SYNFIG) -q $< -o $@ --time 0 -c PastOnly
243         echo "  File \"images\\$@\"" >>./images.nsh
244         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
245
246 keyframe_lock_future.$(EXT): $(srcdir)/keyframe_lock_icon.sif
247         $(SYNFIG) -q $< -o $@ --time 0 -c FutureOnly
248         echo "  File \"images\\$@\"" >>./images.nsh
249         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
250
251 keyframe_lock_none.$(EXT): $(srcdir)/keyframe_lock_icon.sif
252         $(SYNFIG) -q $< -o $@ --time 0 -c Disabled
253         echo "  File \"images\\$@\"" >>./images.nsh
254         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
255
256
257 if !WIN32_PKG
258 if !MACOSX_PKG
259
260 16x16/synfig_icon.$(EXT): synfig_icon.sif
261         -mkdir 16x16
262         $(SYNFIG) -q $< -o $@ --time 0 -w 16 -h 16
263
264 icons16dir = $(datadir)/icons/hicolor/16x16/apps
265 icons16_DATA = 16x16/synfig_icon.$(EXT)
266
267 22x22/synfig_icon.$(EXT): synfig_icon.sif
268         -mkdir 22x22
269         $(SYNFIG) -q $< -o $@ --time 0 -w 22 -h 22
270
271 icons22dir = $(datadir)/icons/hicolor/22x22/apps
272 icons22_DATA = 22x22/synfig_icon.$(EXT)
273
274 24x24/synfig_icon.$(EXT): synfig_icon.sif
275         -mkdir 24x24
276         $(SYNFIG) -q $< -o $@ --time 0 -w 24 -h 24
277
278 icons24dir = $(datadir)/icons/hicolor/24x24/apps
279 icons24_DATA = 24x24/synfig_icon.$(EXT)
280
281 32x32/synfig_icon.$(EXT): synfig_icon.sif
282         -mkdir 32x32
283         $(SYNFIG) -q $< -o $@ --time 0 -w 32 -h 32
284
285 icons32dir = $(datadir)/icons/hicolor/32x32/apps
286 icons32_DATA = 32x32/synfig_icon.$(EXT)
287
288 48x48/synfig_icon.$(EXT): synfig_icon.sif
289         -mkdir 48x48
290         $(SYNFIG) -q $< -o $@ --time 0 -w 48 -h 48
291
292 icons48dir = $(datadir)/icons/hicolor/48x48/apps
293 icons48_DATA = 48x48/synfig_icon.$(EXT)
294
295 64x64/synfig_icon.$(EXT): synfig_icon.sif
296         -mkdir 64x64
297         $(SYNFIG) -q $< -o $@ --time 0 -w 64 -h 64
298
299 icons64dir = $(datadir)/icons/hicolor/64x64/apps
300 icons64_DATA = 64x64/synfig_icon.$(EXT)
301
302 128x128/synfig_icon.$(EXT): synfig_icon.sif
303         -mkdir 128x128
304         $(SYNFIG) -q $< -o $@ --time 0 -w 128 -h 128
305
306 icons128dir = $(datadir)/icons/hicolor/128x128/apps
307 icons128_DATA = 128x128/synfig_icon.$(EXT)
308
309 iconsscalabledir = $(datadir)/icons/hicolor/scalable/apps
310 iconsscalable_DATA = synfig_icon.svg
311
312 endif
313 endif