New snap grid and show icons versions based on previous ones. The Snap grid icon...
[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-0.62.01.sif \
10         splash_screen-0.62.01-2.sif \
11         splash_screen-0.62.00.sif \
12         splash_screen-0.61.09.sif \
13         splash_screen-0.61.08.sif \
14         splash_screen-0.61.07.sif \
15         splash_screen_development.sif.in \
16         about_icon.sif \
17         clear_redo_icon.sif \
18         clear_undo_icon.sif \
19         curves_icon.sif \
20         duplicate_icon.sif \
21         encapsulate_icon.sif \
22         keyframe_lock_icon.sif \
23         logo.sif \
24         pastecanvas_icon.sif \
25         saveall_icon.sif \
26         select_all_child_layers_icon.sif \
27         sif_icon.sif \
28         reset_colors_icon.sif \
29         swap_colors_icon.sif \
30         synfig_icon.sif \
31         synfig_icon.svg \
32         valuenode_icon.sif \
33         wallpaper.sif \
34         rename_icon.sif \
35         plant_icon.sif \
36         set_fill_color.sif \
37         set_outline_color.sif \
38         seek_begin.sif \
39         seek_end.sif \
40         seek_next_frame.sif \
41         seek_prev_frame.sif \
42         duck_position_icon.sif \
43         duck_vertex_icon.sif \
44         duck_tangent_icon.sif \
45         duck_radius_icon.sif \
46         duck_width_icon.sif \
47         duck_angle_icon.sif \
48         show_grid_icon.sif \
49         snap_grid_icon.sif \
50         onion_skin_icon.sif \
51         incr_resolution_icon.sif \
52         decr_resolution_icon.sif \
53         render_options_icon.sif \
54         preview_options_icon.sif \
55         action_set_layer_description_icon.sif \
56         action_add_to_group_icon.sif \
57         action_remove_from_group_icon.sif \
58         action_export_icon.sif \
59         action_unexport_icon.sif \
60         \
61         layer_blur_blur_icon.sif \
62         layer_blur_motion_icon.sif \
63         layer_blur_radial_icon.sif \
64         layer_distortion_curvewarp_icon.sif \
65         layer_distortion_insideout_icon.sif \
66         layer_distortion_noise_icon.sif \
67         layer_distortion_spherize_icon.sif \
68         layer_distortion_stretch_icon.sif \
69         layer_distortion_twirl_icon.sif \
70         layer_distortion_warp_icon.sif \
71         layer_example_filledrectangle_icon.sif \
72         layer_example_metaballs_icon.sif \
73         layer_example_simplecircle_icon.sif \
74         layer_filter_clamp_icon.sif \
75         layer_filter_colorcorrect_icon.sif \
76         layer_filter_halftone2_icon.sif \
77         layer_filter_halftone3_icon.sif \
78         layer_filter_lumakey_icon.sif \
79         layer_fractal_julia_icon.sif \
80         layer_fractal_mandelbrot_icon.sif \
81         layer_geometry_checkerboard_icon.sif \
82         layer_geometry_circle_icon.sif \
83         layer_geometry_outline_icon.sif \
84         layer_geometry_polygon_icon.sif \
85         layer_geometry_rectangle_icon.sif \
86         layer_geometry_region_icon.sif \
87         layer_geometry_solidcolor_icon.sif \
88         layer_geometry_star_icon.sif \
89         layer_gradient_conical_icon.sif \
90         layer_gradient_curve_icon.sif \
91         layer_gradient_lineal_icon.sif \
92         layer_gradient_noise_icon.sif \
93         layer_gradient_radial_icon.sif \
94         layer_gradient_spiral_icon.sif \
95         layer_other_duplicate_icon.sif \
96         layer_other_importimage_icon.sif \
97         layer_other_pastecanvas_icon.sif \
98         layer_other_plant_icon.sif \
99         layer_other_supersample_icon.sif \
100         layer_other_text_icon.sif \
101         layer_other_timeloop_icon.sif \
102         layer_other_xorpattern_icon.sif \
103         layer_stylize_bevel_icon.sif \
104         layer_stylize_shade_icon.sif \
105         layer_transform_rotate_icon.sif \
106         layer_transform_translate_icon.sif \
107         layer_transform_zoom_icon.sif \
108         \
109         tool_bline_icon.sif \
110         tool_circle_icon.sif \
111         tool_draw_icon.sif \
112         tool_eyedrop_icon.sif \
113         tool_fill_icon.sif \
114         tool_gradient_icon.sif \
115         tool_mirror_icon.sif \
116         tool_normal_icon.sif \
117         tool_polyline_icon.sif \
118         tool_rectangle_icon.sif \
119         tool_rotate_icon.sif \
120         tool_scale_icon.sif \
121         tool_sketch_icon.sif \
122         tool_smooth_move_icon.sif \
123         tool_star_icon.sif \
124         tool_text_icon.sif \
125         tool_width_icon.sif \
126         tool_zoom_icon.sif \
127         \
128         type_angle_icon.sif \
129         type_blinepoint_icon.sif \
130         type_bool_icon.sif \
131         type_canvas_icon.sif \
132         type_color_icon.sif \
133         type_gradient_icon.sif \
134         type_integer_icon.sif \
135         type_list_icon.sif \
136         type_real_icon.sif \
137         type_segment_icon.sif \
138         type_string_icon.sif \
139         type_time_icon.sif \
140         type_vector_icon.sif \
141         \
142         canvas_icon.sif \
143         children_icon.sif \
144         curves_icon.sif \
145         group_icon.sif \
146         history_icon.sif \
147         info_icon.sif \
148         keyframe_icon.sif \
149         layer_icon.sif \
150         meta_data_icon.sif \
151         navigator_icon.sif \
152         palette_icon.sif \
153         params_icon.sif \
154         time_track_icon.sif
155
156 IMAGES = \
157         installer_logo.$(EXT) \
158         installer_logo_osx.$(EXT) \
159         pastecanvas_icon.$(EXT) \
160         clear_redo_icon.$(EXT) \
161         clear_undo_icon.$(EXT) \
162         reset_colors_icon.$(EXT) \
163         swap_colors_icon.$(EXT) \
164         select_all_child_layers_icon.$(EXT) \
165         sif_icon.$(EXT) \
166         synfig_icon.$(EXT) \
167         saveall_icon.$(EXT) \
168         about_icon.$(EXT) \
169         splash_screen.$(EXT) \
170         valuenode_icon.$(EXT) \
171         duplicate_icon.$(EXT) \
172         encapsulate_icon.$(EXT) \
173         keyframe_lock_all.$(EXT) \
174         keyframe_lock_past.$(EXT) \
175         keyframe_lock_future.$(EXT) \
176         keyframe_lock_none.$(EXT) \
177         rename_icon.$(EXT) \
178         plant_icon.$(EXT) \
179         set_fill_color.$(EXT) \
180         set_outline_color.$(EXT) \
181         seek_begin.$(EXT) \
182         seek_end.$(EXT) \
183         seek_next_frame.$(EXT) \
184         seek_prev_frame.$(EXT) \
185         duck_position_icon.$(EXT) \
186         duck_vertex_icon.$(EXT) \
187         duck_tangent_icon.$(EXT) \
188         duck_radius_icon.$(EXT) \
189         duck_width_icon.$(EXT) \
190         duck_angle_icon.$(EXT) \
191         show_grid_icon.$(EXT) \
192         snap_grid_icon.$(EXT) \
193         onion_skin_icon.$(EXT) \
194         incr_resolution_icon.$(EXT) \
195         decr_resolution_icon.$(EXT) \
196         render_options_icon.$(EXT) \
197         preview_options_icon.$(EXT) \
198         action_set_layer_description_icon.$(EXT) \
199         action_add_to_group_icon.$(EXT) \
200         action_remove_from_group_icon.$(EXT) \
201         action_export_icon.$(EXT) \
202         action_unexport_icon.$(EXT) \
203         \
204         layer_blur_blur_icon.$(EXT) \
205         layer_blur_motion_icon.$(EXT) \
206         layer_blur_radial_icon.$(EXT) \
207         layer_distortion_curvewarp_icon.$(EXT) \
208         layer_distortion_insideout_icon.$(EXT) \
209         layer_distortion_noise_icon.$(EXT) \
210         layer_distortion_spherize_icon.$(EXT) \
211         layer_distortion_stretch_icon.$(EXT) \
212         layer_distortion_twirl_icon.$(EXT) \
213         layer_distortion_warp_icon.$(EXT) \
214         layer_example_filledrectangle_icon.$(EXT) \
215         layer_example_metaballs_icon.$(EXT) \
216         layer_example_simplecircle_icon.$(EXT) \
217         layer_filter_clamp_icon.$(EXT) \
218         layer_filter_colorcorrect_icon.$(EXT) \
219         layer_filter_halftone2_icon.$(EXT) \
220         layer_filter_halftone3_icon.$(EXT) \
221         layer_filter_lumakey_icon.$(EXT) \
222         layer_fractal_julia_icon.$(EXT) \
223         layer_fractal_mandelbrot_icon.$(EXT) \
224         layer_geometry_checkerboard_icon.$(EXT) \
225         layer_geometry_circle_icon.$(EXT) \
226         layer_geometry_outline_icon.$(EXT) \
227         layer_geometry_polygon_icon.$(EXT) \
228         layer_geometry_rectangle_icon.$(EXT) \
229         layer_geometry_region_icon.$(EXT) \
230         layer_geometry_solidcolor_icon.$(EXT) \
231         layer_geometry_star_icon.$(EXT) \
232         layer_gradient_conical_icon.$(EXT) \
233         layer_gradient_curve_icon.$(EXT) \
234         layer_gradient_lineal_icon.$(EXT) \
235         layer_gradient_noise_icon.$(EXT) \
236         layer_gradient_radial_icon.$(EXT) \
237         layer_gradient_spiral_icon.$(EXT) \
238         layer_other_duplicate_icon.$(EXT) \
239         layer_other_importimage_icon.$(EXT) \
240         layer_other_pastecanvas_icon.$(EXT) \
241         layer_other_plant_icon.$(EXT) \
242         layer_other_supersample_icon.$(EXT) \
243         layer_other_text_icon.$(EXT) \
244         layer_other_timeloop_icon.$(EXT) \
245         layer_other_xorpattern_icon.$(EXT) \
246         layer_stylize_bevel_icon.$(EXT) \
247         layer_stylize_shade_icon.$(EXT) \
248         layer_transform_rotate_icon.$(EXT) \
249         layer_transform_translate_icon.$(EXT) \
250         layer_transform_zoom_icon.$(EXT) \
251         \
252         tool_bline_icon.$(EXT) \
253         tool_circle_icon.$(EXT) \
254         tool_draw_icon.$(EXT) \
255         tool_eyedrop_icon.$(EXT) \
256         tool_fill_icon.$(EXT) \
257         tool_gradient_icon.$(EXT) \
258         tool_mirror_icon.$(EXT) \
259         tool_normal_icon.$(EXT) \
260         tool_polyline_icon.$(EXT) \
261         tool_rectangle_icon.$(EXT) \
262         tool_rotate_icon.$(EXT) \
263         tool_scale_icon.$(EXT) \
264         tool_sketch_icon.$(EXT) \
265         tool_smooth_move_icon.$(EXT) \
266         tool_star_icon.$(EXT) \
267         tool_text_icon.$(EXT) \
268         tool_width_icon.$(EXT) \
269         tool_zoom_icon.$(EXT) \
270         \
271         type_angle_icon.$(EXT) \
272         type_blinepoint_icon.$(EXT) \
273         type_bool_icon.$(EXT) \
274         type_canvas_icon.$(EXT) \
275         type_color_icon.$(EXT) \
276         type_gradient_icon.$(EXT) \
277         type_integer_icon.$(EXT) \
278         type_list_icon.$(EXT) \
279         type_real_icon.$(EXT) \
280         type_segment_icon.$(EXT) \
281         type_string_icon.$(EXT) \
282         type_time_icon.$(EXT) \
283         type_vector_icon.$(EXT) \
284         \
285         canvas_icon.$(EXT) \
286         children_icon.$(EXT) \
287         curves_icon.$(EXT) \
288         group_icon.$(EXT) \
289         history_icon.$(EXT) \
290         info_icon.$(EXT) \
291         keyframe_icon.$(EXT) \
292         layer_icon.$(EXT) \
293         meta_data_icon.$(EXT) \
294         navigator_icon.$(EXT) \
295         palette_icon.$(EXT) \
296         params_icon.$(EXT) \
297         time_track_icon.$(EXT)
298
299 MAINTAINERCLEANFILES = \
300         Makefile.in
301
302
303 CLEANFILES = \
304         $(IMAGES) \
305         images.nsh \
306         unimages.nsh \
307         installer_logo.bmp \
308         sif_icon.ico \
309         synfig_icon.ico \
310         icons.nsh \
311         unicons.nsh
312
313 CLEANDIRS = \
314         16x16 \
315         22x22 \
316         24x24 \
317         32x32 \
318         48x48 \
319         64x64 \
320         128x128
321
322 image_DATA = $(IMAGES)
323
324
325 all: $(IMAGES)
326
327 SUFFIXES = .sif .tif .png
328
329 #.SUFFIXES: $(SUFFIXES)
330
331 PNGTOICO = png2ico
332
333 .sif.ico:
334         $(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
335         cp -f `which $(PNGTOICO)`.* ./
336         $(PNGTOICO) $@ $*-16x16.png $*-32x32.png $*-48x48.png $*-64x64.png
337         rm -f ./$(PNGTOICO).* $*-16x16.png $*-32x32.png $*-48x48.png $*-64x64.png
338         echo "  File \"images\\$@\"" >>./icons.nsh
339         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unicons.nsh
340
341 clean-local:
342         $(RM) -r $(CLEANDIRS)
343
344 .sif.bmp:
345         $(SYNFIG) -q $< -o $@ --time 0
346
347 .sif.$(EXT):
348         $(SYNFIG) -q $< -o $@ --time 0
349         echo "  File \"images\\$@\"" >>./images.nsh
350         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
351
352 .sifz.$(EXT):
353         $(SYNFIG) -q $< -o $@ --time 0
354         echo "  File \"images\\$@\"" >>./images.nsh
355         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
356
357 keyframe_lock_all.$(EXT): $(srcdir)/keyframe_lock_icon.sif
358         $(SYNFIG) -q $< -o $@ --time 0
359         echo "  File \"images\\$@\"" >>./images.nsh
360         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
361
362 keyframe_lock_past.$(EXT): $(srcdir)/keyframe_lock_icon.sif
363         $(SYNFIG) -q $< -o $@ --time 0 -c PastOnly
364         echo "  File \"images\\$@\"" >>./images.nsh
365         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
366
367 keyframe_lock_future.$(EXT): $(srcdir)/keyframe_lock_icon.sif
368         $(SYNFIG) -q $< -o $@ --time 0 -c FutureOnly
369         echo "  File \"images\\$@\"" >>./images.nsh
370         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
371
372 keyframe_lock_none.$(EXT): $(srcdir)/keyframe_lock_icon.sif
373         $(SYNFIG) -q $< -o $@ --time 0 -c Disabled
374         echo "  File \"images\\$@\"" >>./images.nsh
375         echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
376
377 if DEVELOPMENT_SNAPSHOT
378 splash_screen_development.sif: $(srcdir)/splash_screen_development.sif.in
379         export commit_id=`git log --no-color -1 | head -n 1 | cut -f 2 -d ' ' | cut -c -6` && \
380         export commit_date=`git show --pretty=format:%ci HEAD |  head -c 10` && \
381         export branch=`git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' '//` && \
382         export branch=`echo $$branch | egrep origin/master > /dev/null && echo master || echo $$branch | cut -d ' ' -f 1 | sed -e 's/.*\///'` && \
383         sed "s|%branch%|$$branch|" $< | sed "s|%commit_date%|$$commit_date|" | sed "s|%commit_id%|$$commit_id|" > $@
384 splash_screen.$(EXT): $(srcdir)/splash_screen_development.sif
385         $(SYNFIG) -q $< -o $@ --time 0
386 else
387 splash_screen.$(EXT): $(srcdir)/splash_screen-$(PACKAGE_VERSION).sif
388         $(SYNFIG) -q $< -o $@ --time 0
389 endif
390
391 if !WIN32_PKG
392 if !MACOSX_PKG
393
394 16x16/synfig_icon.$(EXT): synfig_icon.sif
395         -mkdir 16x16
396         $(SYNFIG) -q $< -o $@ --time 0 -w 16 -h 16
397
398 icons16dir = $(datadir)/icons/hicolor/16x16/apps
399 icons16_DATA = 16x16/synfig_icon.$(EXT)
400
401 22x22/synfig_icon.$(EXT): synfig_icon.sif
402         -mkdir 22x22
403         $(SYNFIG) -q $< -o $@ --time 0 -w 22 -h 22
404
405 icons22dir = $(datadir)/icons/hicolor/22x22/apps
406 icons22_DATA = 22x22/synfig_icon.$(EXT)
407
408 24x24/synfig_icon.$(EXT): synfig_icon.sif
409         -mkdir 24x24
410         $(SYNFIG) -q $< -o $@ --time 0 -w 24 -h 24
411
412 icons24dir = $(datadir)/icons/hicolor/24x24/apps
413 icons24_DATA = 24x24/synfig_icon.$(EXT)
414
415 32x32/synfig_icon.$(EXT): synfig_icon.sif
416         -mkdir 32x32
417         $(SYNFIG) -q $< -o $@ --time 0 -w 32 -h 32
418
419 icons32dir = $(datadir)/icons/hicolor/32x32/apps
420 icons32_DATA = 32x32/synfig_icon.$(EXT)
421
422 48x48/synfig_icon.$(EXT): synfig_icon.sif
423         -mkdir 48x48
424         $(SYNFIG) -q $< -o $@ --time 0 -w 48 -h 48
425
426 icons48dir = $(datadir)/icons/hicolor/48x48/apps
427 icons48_DATA = 48x48/synfig_icon.$(EXT)
428
429 64x64/synfig_icon.$(EXT): synfig_icon.sif
430         -mkdir 64x64
431         $(SYNFIG) -q $< -o $@ --time 0 -w 64 -h 64
432
433 icons64dir = $(datadir)/icons/hicolor/64x64/apps
434 icons64_DATA = 64x64/synfig_icon.$(EXT)
435
436 128x128/synfig_icon.$(EXT): synfig_icon.sif
437         -mkdir 128x128
438         $(SYNFIG) -q $< -o $@ --time 0 -w 128 -h 128
439
440 icons128dir = $(datadir)/icons/hicolor/128x128/apps
441 icons128_DATA = 128x128/synfig_icon.$(EXT)
442
443 iconsscalabledir = $(datadir)/icons/hicolor/scalable/apps
444 iconsscalable_DATA = synfig_icon.svg
445
446 endif
447 endif