SYNFIG = synfig
export PATH := ${prefix}/bin:$(PATH)

EXT = @imageext@


EXTRA_DIST = \
	installer_logo.sif \
	installer_logo_osx.sif \
	splash_screen.sif \
	splash_screen-1.2.x.sif \
	splash_screen-1.0.1.sif \
	splash_screen-1.0.2.sif \
	splash_screen-1.0.sif \
	splash_screen-1.0.x.sif \
	splash_screen-0.64.1.sif \
	splash_screen-0.64.0.sif \
	splash_screen-0.64.sif \
	splash_screen-0.63.05.sif \
	splash_screen-0.63.04.sif \
	splash_screen-0.63.03.sif \
	splash_screen-0.63.02.sif \
	splash_screen-0.63.01.sif \
	splash_screen-0.63.00.sif \
	splash_screen-0.63.sif \
	splash_screen-0.62.02.sif \
	splash_screen-0.62.01.sif \
	splash_screen-0.62.01-2.sif \
	splash_screen-0.62.00.sif \
	splash_screen-0.61.09.sif \
	splash_screen-0.61.08.sif \
	splash_screen-0.61.07.sif \
	splash_screen_development.sif.in \
	splash_screen_development.sh \
	about_icon.sif \
	animate_mode_icons.sif \
	clear_redo_icon.sif \
	clear_undo_icon.sif \
	canvas_and_importimage_icons.sif \
	graphs_icon.sif \
	duplicate_icon.sif \
	group_icon.sif \
	jack_icon.sif \
	keyframe_lock_icons.sif \
	framedial_icons.sif \
	logo.sif \
	select_all_child_layers_icon.sif \
	sif_icon.sif \
	reset_colors_icon.sif \
	swap_colors_icon.sif \
	synfig_icon.sif \
	org.synfig.SynfigStudio.svg \
	valuenode_icon.sif \
	wallpaper.sif \
	rename_icon.sif \
	set_fill_color_icon.sif \
	set_outline_color_icon.sif \
	duck_position_icon.sif \
	duck_vertex_icon.sif \
	duck_tangent_icon.sif \
	duck_radius_icon.sif \
	duck_width_icon.sif \
	duck_angle_icon.sif \
	show_grid_icon.sif \
	snap_grid_icon.sif \
	show_guideline_icon.sif \
	snap_guideline_icon.sif \
	onion_skin_icon.sif \
	incr_resolution_icon.sif \
	decr_resolution_icon.sif \
	render_options_icon.sif \
	preview_options_icon.sif \
	background_rendering_icon.sif \
	action_set_layer_description_icon.sif \
	action_add_to_set_icon.sif \
	action_remove_from_set_icon.sif \
	action_export_icon.sif \
	action_unexport_icon.sif \
	action_flat_interpolation_icon.sif \
	action_interpolate_interpolation_icon.sif \
	action_peak_interpolation_icon.sif \
	action_offpeak_interpolation_icon.sif \
	action_rounded_interpolation_icon.sif \
	action_innerrounded_interpolation_icon.sif \
	action_squared_interpolation_icon.sif \
	\
	action_doc_icons.sif \
	\
	interpolation_type_icons.sif\
	\
	layer_blur_blur_icon.sif \
	layer_blur_motion_icon.sif \
	layer_blur_radial_icon.sif \
	layer_distortion_curvewarp_icon.sif \
	layer_distortion_insideout_icon.sif \
	layer_distortion_noise_icon.sif \
	layer_distortion_skeletondeformation_icon.sif \
	layer_distortion_spherize_icon.sif \
	layer_distortion_stretch_icon.sif \
	layer_distortion_twirl_icon.sif \
	layer_distortion_warp_icon.sif \
	layer_example_metaballs_icon.sif \
	layer_example_simplecircle_icon.sif \
	layer_filter_chromakey_icon.sif \
	layer_filter_clamp_icon.sif \
	layer_filter_colorcorrect_icon.sif \
	layer_filter_halftone2_icon.sif \
	layer_filter_halftone3_icon.sif \
	layer_filter_lumakey_icon.sif \
	layer_fractal_julia_icon.sif \
	layer_fractal_mandelbrot_icon.sif \
	layer_geometry_checkerboard_icon.sif \
	layer_geometry_circle_icon.sif \
	layer_geometry_outline_icon.sif \
	layer_geometry_advanced_outline_icon.sif \
	layer_geometry_polygon_icon.sif \
	layer_geometry_rectangle_icon.sif \
	layer_geometry_region_icon.sif \
	layer_geometry_solidcolor_icon.sif \
	layer_geometry_star_icon.sif \
	layer_gradient_conical_icon.sif \
	layer_gradient_curve_icon.sif \
	layer_gradient_linear_icon.sif \
	layer_gradient_noise_icon.sif \
	layer_gradient_radial_icon.sif \
	layer_gradient_spiral_icon.sif \
	layer_other_duplicate_icon.sif \
	layer_other_filtergroup_icon.sif \
	layer_other_group_icon.sif \
	layer_other_ghostgroup_icon.sif \
	layer_other_plant_icon.sif \
	layer_other_stroboscope_icon.sif \
	layer_other_supersample_icon.sif \
	layer_other_skeleton_icon.sif \
	layer_other_sound_icon.sif \
	layer_other_freetime_icon.sif \
	layer_other_switch_icon.sif \
	layer_other_text_icon.sif \
	layer_other_timeloop_icon.sif \
	layer_other_xorpattern_icon.sif \
	layer_stylize_bevel_icon.sif \
	layer_stylize_shade_icon.sif \
	layer_transform_rotate_icon.sif \
	layer_transform_scale_icon.sif \
	layer_transform_translate_icon.sif \
	\
	resize_disabled_icon.sif \
	resize_up_left_icon.sif \
	resize_up_icon.sif \
	resize_up_right_icon.sif \
	resize_left_icon.sif \
	resize_right_icon.sif \
	resize_down_left_icon.sif \
	resize_down_icon.sif \
	resize_down_right_icon.sif \
	resize_transparent_icon.sif \
	\
	tangent_merge_split_icons.sif \
	\
	tool_brush_icon.sif \
	tool_cutout_icon.sif \
	tool_spline_icon.sif \
	tool_skeleton_icon.sif\
	tool_circle_icon.sif \
	tool_draw_icon.sif \
	tool_eyedrop_icon.sif \
	tool_fill_icon.sif \
	tool_gradient_icon.sif \
	tool_mirror_icon.sif \
	tool_normal_icon.sif \
	tool_polyline_icon.sif \
	tool_rectangle_icon.sif \
	tool_rotate_icon.sif \
	tool_scale_icon.sif \
	tool_sketch_icon.sif \
	tool_smooth_move_icon.sif \
	tool_star_icon.sif \
	tool_text_icon.sif \
	tool_width_icon.sif \
	tool_zoom_icon.sif \
	\
	type_angle_icon.sif \
	type_splinepoint_icon.sif \
	type_bool_icon.sif \
	type_canvas_icon.sif \
	type_color_icon.sif \
	type_gradient_icon.sif \
	type_integer_icon.sif \
	type_list_icon.sif \
	type_real_icon.sif \
	type_segment_icon.sif \
	type_string_icon.sif \
	type_time_icon.sif \
	type_vector_icon.sif \
	\
	library_icon.sif \
	graphs_icon.sif \
	set_icon.sif \
	history_icon.sif \
	info_icon.sif \
	keyframe_icon.sif \
	layer_icon.sif \
	meta_data_icon.sif \
	navigator_icon.sif \
	palette_icon.sif \
	parameters_icon.sif \
	sound_icon.sif \
	time_track_icon.sif \
	\
	utils_chain_link_icons.sif \
	utils_timetrack_align_icon.sif

IMAGES = \
	installer_logo.bmp \
	installer_logo_osx.$(EXT) \
	splash_screen.$(EXT)

ICONS = \
	clear_redo_icon.$(EXT) \
	clear_undo_icon.$(EXT) \
	reset_colors_icon.$(EXT) \
	swap_colors_icon.$(EXT) \
	select_all_child_layers_icon.$(EXT) \
	sif_icon.$(EXT) \
	synfig_icon.$(EXT) \
	about_icon.$(EXT) \
	valuenode_icon.$(EXT) \
	duplicate_icon.$(EXT) \
	group_icon.$(EXT) \
	jack_icon.$(EXT) \
	\
	keyframe_lock_past_on_icon.$(EXT) \
	keyframe_lock_past_off_icon.$(EXT) \
	keyframe_lock_future_on_icon.$(EXT) \
	keyframe_lock_future_off_icon.$(EXT) \
	\
	animate_seek_next_keyframe_icon.$(EXT) \
	animate_seek_prev_keyframe_icon.$(EXT) \
	animate_seek_next_frame_icon.$(EXT) \
	animate_seek_prev_frame_icon.$(EXT) \
	animate_seek_begin_icon.$(EXT) \
	animate_seek_end_icon.$(EXT) \
	animate_play_icon.$(EXT) \
	animate_stop_icon.$(EXT) \
	animate_pause_icon.$(EXT) \
	animate_loop_icon.$(EXT) \
	animate_bounds_icon.$(EXT) \
	animate_bound_lower_icon.$(EXT) \
	animate_bound_upper_icon.$(EXT) \
	animate_mode_off_icon.$(EXT) \
	animate_mode_on_icon.$(EXT) \
	\
	rename_icon.$(EXT) \
	set_fill_color_icon.$(EXT) \
	set_outline_color_icon.$(EXT) \
	duck_position_icon.$(EXT) \
	duck_vertex_icon.$(EXT) \
	duck_tangent_icon.$(EXT) \
	duck_radius_icon.$(EXT) \
	duck_width_icon.$(EXT) \
	duck_angle_icon.$(EXT) \
	show_grid_icon.$(EXT) \
	snap_grid_icon.$(EXT) \
	show_guideline_icon.$(EXT) \
	snap_guideline_icon.$(EXT) \
	onion_skin_icon.$(EXT) \
	incr_resolution_icon.$(EXT) \
	decr_resolution_icon.$(EXT) \
	render_options_icon.$(EXT) \
	preview_options_icon.$(EXT) \
	background_rendering_icon.$(EXT) \
	action_set_layer_description_icon.$(EXT) \
	action_add_to_set_icon.$(EXT) \
	action_remove_from_set_icon.$(EXT) \
	action_export_icon.$(EXT) \
	action_unexport_icon.$(EXT) \
	action_flat_interpolation_icon.$(EXT) \
	action_interpolate_interpolation_icon.$(EXT) \
	action_peak_interpolation_icon.$(EXT) \
	action_offpeak_interpolation_icon.$(EXT) \
	action_rounded_interpolation_icon.$(EXT) \
	action_innerrounded_interpolation_icon.$(EXT) \
	action_squared_interpolation_icon.$(EXT) \
	\
	action_doc_new_icon.$(EXT) \
	action_doc_open_icon.$(EXT) \
	action_doc_save_icon.$(EXT) \
	action_doc_saveas_icon.$(EXT) \
	action_doc_saveall_icon.$(EXT) \
	action_doc_redo_icon.$(EXT) \
	action_doc_undo_icon.$(EXT) \
	\
	interpolation_type_tcb_icon.$(EXT)\
	interpolation_type_ease_icon.$(EXT)\
	interpolation_type_const_icon.$(EXT)\
	interpolation_type_linear_icon.$(EXT)\
	interpolation_type_clamped_icon.$(EXT)\
	valuenode_forbidanimation_icon.$(EXT)\
	\
	layer_blur_blur_icon.$(EXT) \
	layer_blur_motion_icon.$(EXT) \
	layer_blur_radial_icon.$(EXT) \
	layer_distortion_curvewarp_icon.$(EXT) \
	layer_distortion_insideout_icon.$(EXT) \
	layer_distortion_noise_icon.$(EXT) \
	layer_distortion_skeletondeformation_icon.$(EXT) \
	layer_distortion_spherize_icon.$(EXT) \
	layer_distortion_stretch_icon.$(EXT) \
	layer_distortion_twirl_icon.$(EXT) \
	layer_distortion_warp_icon.$(EXT) \
	layer_example_metaballs_icon.$(EXT) \
	layer_example_simplecircle_icon.$(EXT) \
	layer_filter_chromakey_icon.$(EXT) \
	layer_filter_clamp_icon.$(EXT) \
	layer_filter_colorcorrect_icon.$(EXT) \
	layer_filter_halftone2_icon.$(EXT) \
	layer_filter_halftone3_icon.$(EXT) \
	layer_filter_lumakey_icon.$(EXT) \
	layer_fractal_julia_icon.$(EXT) \
	layer_fractal_mandelbrot_icon.$(EXT) \
	layer_geometry_checkerboard_icon.$(EXT) \
	layer_geometry_circle_icon.$(EXT) \
	layer_geometry_outline_icon.$(EXT) \
	layer_geometry_advanced_outline_icon.$(EXT) \
	layer_geometry_polygon_icon.$(EXT) \
	layer_geometry_rectangle_icon.$(EXT) \
	layer_geometry_region_icon.$(EXT) \
	layer_geometry_solidcolor_icon.$(EXT) \
	layer_geometry_star_icon.$(EXT) \
	layer_gradient_conical_icon.$(EXT) \
	layer_gradient_curve_icon.$(EXT) \
	layer_gradient_linear_icon.$(EXT) \
	layer_gradient_noise_icon.$(EXT) \
	layer_gradient_radial_icon.$(EXT) \
	layer_gradient_spiral_icon.$(EXT) \
	layer_other_duplicate_icon.$(EXT) \
	layer_other_importimage_icon.$(EXT) \
	layer_other_filtergroup_icon.$(EXT) \
	layer_other_group_icon.$(EXT) \
	layer_other_ghostgroup_icon.$(EXT) \
	layer_other_plant_icon.$(EXT) \
	layer_other_freetime_icon.$(EXT) \
	layer_other_stroboscope_icon.$(EXT) \
	layer_other_supersample_icon.$(EXT) \
	layer_other_skeleton_icon.$(EXT) \
	layer_other_sound_icon.$(EXT) \
	layer_other_switch_icon.$(EXT) \
	layer_other_text_icon.$(EXT) \
	layer_other_timeloop_icon.$(EXT) \
	layer_other_xorpattern_icon.$(EXT) \
	layer_stylize_bevel_icon.$(EXT) \
	layer_stylize_shade_icon.$(EXT) \
	layer_transform_rotate_icon.$(EXT) \
	layer_transform_scale_icon.$(EXT) \
	layer_transform_translate_icon.$(EXT) \
	\
	resize_disabled_icon.$(EXT) \
	resize_up_left_icon.$(EXT) \
	resize_up_icon.$(EXT) \
	resize_up_right_icon.$(EXT) \
	resize_left_icon.$(EXT) \
	resize_right_icon.$(EXT) \
	resize_down_left_icon.$(EXT) \
	resize_down_icon.$(EXT) \
	resize_down_right_icon.$(EXT) \
	resize_transparent_icon.$(EXT) \
	\
	tangent_merge_icon.$(EXT) \
	tangent_split_icon.$(EXT) \
	\
	tool_brush_icon.$(EXT) \
	tool_cutout_icon.$(EXT) \
	tool_spline_icon.$(EXT) \
	tool_skeleton_icon.$(EXT)\
	tool_circle_icon.$(EXT) \
	tool_draw_icon.$(EXT) \
	tool_eyedrop_icon.$(EXT) \
	tool_fill_icon.$(EXT) \
	tool_gradient_icon.$(EXT) \
	tool_mirror_icon.$(EXT) \
	tool_normal_icon.$(EXT) \
	tool_polyline_icon.$(EXT) \
	tool_rectangle_icon.$(EXT) \
	tool_rotate_icon.$(EXT) \
	tool_scale_icon.$(EXT) \
	tool_sketch_icon.$(EXT) \
	tool_smooth_move_icon.$(EXT) \
	tool_star_icon.$(EXT) \
	tool_text_icon.$(EXT) \
	tool_width_icon.$(EXT) \
	tool_zoom_icon.$(EXT) \
	\
	type_angle_icon.$(EXT) \
	type_splinepoint_icon.$(EXT) \
	type_bool_icon.$(EXT) \
	type_canvas_icon.$(EXT) \
	type_color_icon.$(EXT) \
	type_gradient_icon.$(EXT) \
	type_integer_icon.$(EXT) \
	type_list_icon.$(EXT) \
	type_real_icon.$(EXT) \
	type_segment_icon.$(EXT) \
	type_string_icon.$(EXT) \
	type_time_icon.$(EXT) \
	type_vector_icon.$(EXT) \
	\
	canvas_icon.$(EXT) \
	library_icon.$(EXT) \
	graphs_icon.$(EXT) \
	set_icon.$(EXT) \
	history_icon.$(EXT) \
	info_icon.$(EXT) \
	keyframe_icon.$(EXT) \
	layer_icon.$(EXT) \
	meta_data_icon.$(EXT) \
	navigator_icon.$(EXT) \
	palette_icon.$(EXT) \
	parameters_icon.$(EXT) \
	sound_icon.$(EXT) \
	time_track_icon.$(EXT) \
	\
	utils_chain_link_on_icon.$(EXT) \
	utils_chain_link_off_icon.$(EXT) \
	utils_timetrack_align_icon.$(EXT)

if WIN32_PKG
WIN32_ICONS = \
	sif_icon.ico \
	synfig_icon.ico
endif

MAINTAINERCLEANFILES = \
	Makefile.in

if DEVELOPMENT_SNAPSHOT
SPLASH_DEV = splash_screen_development.sif
endif

CLEANFILES = \
	$(IMAGES) \
	$(ICONS) \
	$(WIN32_ICONS) \
	$(SPLASH_DEV) \
	logo_tmp.sif \
	images.nsh \
	unimages.nsh \
	installer_logo.bmp \
	icons.nsh \
	unicons.nsh

CLEANDIRS = \
	16x16 \
	22x22 \
	24x24 \
	32x32 \
	48x48 \
	64x64 \
	128x128 \
	256x256

appicondir= $(datadir)/icons/hicolor

imagedir = $(synfig_datadir)/images
image_DATA = $(IMAGES)

classicthemedir = ${synfig_datadir}/icons/classic
dist_classictheme_DATA = index.theme

iconsdir = ${classicthemedir}/128x128
icons_DATA = $(ICONS)

win32iconsdir = $(datadir)/pixmaps
win32icons_DATA = $(WIN32_ICONS)

all: $(IMAGES) $(ICONS)

.sifz.ico:
	bash $(top_srcdir)/build_tools/sif2ico.sh $<
	echo "  File \"images\\$@\"" >>./icons.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unicons.nsh

.sif.ico:
	bash $(top_srcdir)/build_tools/sif2ico.sh $<
	echo "  File \"images\\$@\"" >>./icons.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unicons.nsh

clean-local:
	$(RM) -r $(CLEANDIRS)

.sifz.bmp:
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

.sif.bmp:
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

.sifz.$(EXT):
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

.sif.$(EXT):
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

keyframe_lock_past_on_icon.$(EXT): $(srcdir)/keyframe_lock_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

keyframe_lock_past_off_icon.$(EXT): $(srcdir)/keyframe_lock_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

keyframe_lock_future_on_icon.$(EXT): $(srcdir)/keyframe_lock_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 2f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

keyframe_lock_future_off_icon.$(EXT): $(srcdir)/keyframe_lock_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 3f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_next_keyframe_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_prev_keyframe_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_next_frame_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 2f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_prev_frame_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 3f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_begin_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 4f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_seek_end_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 5f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_play_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 6f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_stop_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 7f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_pause_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 8f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_loop_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 9f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_bounds_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 10f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_bound_lower_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 11f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_bound_upper_icon.$(EXT): $(srcdir)/framedial_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 12f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_mode_off_icon.$(EXT): $(srcdir)/animate_mode_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

animate_mode_on_icon.$(EXT): $(srcdir)/animate_mode_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

interpolation_type_tcb_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

interpolation_type_linear_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 2f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

interpolation_type_ease_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 3f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

interpolation_type_const_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 4f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

interpolation_type_clamped_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 5f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

valuenode_forbidanimation_icon.$(EXT): $(srcdir)/interpolation_type_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 7f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

canvas_icon.$(EXT): $(srcdir)/canvas_and_importimage_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 2f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

layer_other_importimage_icon.$(EXT): $(srcdir)/canvas_and_importimage_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

tangent_merge_icon.$(EXT): $(srcdir)/tangent_merge_split_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

tangent_split_icon.$(EXT): $(srcdir)/tangent_merge_split_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

utils_chain_link_on_icon.$(EXT): $(srcdir)/utils_chain_link_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

utils_chain_link_off_icon.$(EXT): $(srcdir)/utils_chain_link_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_new_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 1f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_open_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 2f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_save_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 3f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_saveas_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 4f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_saveall_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 5f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_undo_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 6f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

action_doc_redo_icon.$(EXT): $(srcdir)/action_doc_icons.sif
	$(SYNFIG) --quiet $< -o $@ --time 7f
	echo " File \"images\\$@\"" >>./images.nsh
	echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh

if DEVELOPMENT_SNAPSHOT
splash_screen_development.sif: $(srcdir)/splash_screen_development.sif.in $(top_builddir)/autorevision.h
	$(srcdir)/splash_screen_development.sh $@ "$(srcdir)"
splash_screen.$(EXT): splash_screen_development.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
else
splash_screen.$(EXT): $(srcdir)/splash_screen.sif
	$(SYNFIG) --quiet $< -o $@ --time 0f
	echo "  File \"images\\$@\"" >>./images.nsh
	echo "  Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
endif

if !WIN32_PKG
if !MACOSX_PKG

16x16/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 16x16
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 16 -h 16

icons16dir = $(appicondir)/16x16/apps
icons16_DATA = 16x16/synfig_icon.$(EXT)

22x22/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 22x22
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 22 -h 22

icons22dir = $(appicondir)/22x22/apps
icons22_DATA = 22x22/synfig_icon.$(EXT)

24x24/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 24x24
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 24 -h 24

icons24dir = $(appicondir)/24x24/apps
icons24_DATA = 24x24/synfig_icon.$(EXT)

32x32/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 32x32
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 32 -h 32

icons32dir = $(appicondir)/32x32/apps
icons32_DATA = 32x32/synfig_icon.$(EXT)

48x48/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 48x48
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 48 -h 48

icons48dir = $(appicondir)/48x48/apps
icons48_DATA = 48x48/synfig_icon.$(EXT)

64x64/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 64x64
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 64 -h 64

icons64dir = $(appicondir)/64x64/apps
icons64_DATA = 64x64/synfig_icon.$(EXT)

128x128/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 128x128
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 128 -h 128

icons128dir = $(appicondir)/128x128/apps
icons128_DATA = 128x128/synfig_icon.$(EXT)

256x256/synfig_icon.$(EXT): synfig_icon.sif
	-mkdir 256x256
	$(SYNFIG) --quiet $< -o $@ --time 0f -w 256 -h 256

icons256dir = $(appicondir)/256x256/apps
icons256_DATA = 256x256/synfig_icon.$(EXT)

iconsscalabledir = $(appicondir)/scalable/apps
iconsscalable_DATA = org.synfig.SynfigStudio.svg

endif
endif

