This makes the output of "make -f Smake" shorter and easier to read.
DIST_HOOKS += generate-changelog
+include $(top_srcdir)/build-aux/automake.mk
include $(top_srcdir)/po/automake.mk
include $(top_srcdir)/lib/automake.mk
include $(top_srcdir)/doc/automake.mk
#svg2png=convert -background transparent $1 $3
-svg2png=gimp -i -b '(let* ((image (car (gimp-file-load 1 "$1" "$1")))) (gimp-image-attach-parasite image (list "gimp-comment" 0 "$(shell cat $2)")) (gimp-file-save 1 image (car (gimp-image-get-active-drawable image)) "$3" "$3")) (gimp-quit 1)'
-
-
-src/ui/gui/icons/%.png: src/ui/gui/artwork/%.svg src/ui/gui/icons/COPYING_CCBYSA3
+src/ui/gui/icons/%.png: src/ui/gui/artwork/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
mkdir -p $(dir $@)
- $(call svg2png,$<,$(lastword $^),$@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
src/ui/gui/icons/%.svg: src/ui/gui/artwork/%.svg
--- /dev/null
+## Process this file with automake to produce Makefile.in -*- makefile -*-
+
+EXTRA_DIST += build-aux/svg2png
--- /dev/null
+#! /bin/sh
+
+comment=`cat $2`
+gimp -i -b "\
+(let* ((image (car (gimp-file-load 1 \"$1\" \"$1\"))))
+ (gimp-image-attach-parasite image (list \"gimp-comment\" 0 \"$comment\"))
+ (gimp-file-save 1 image (car (gimp-image-get-active-drawable image))
+ \"$3\" \"$3\"))
+ (gimp-quit 1)"