X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Smake;h=306e115e42bc73a1223dd8e1ef70ed65cd4a9789;hb=refs%2Fbuilds%2F20130909030503%2Fpspp;hp=241db08937880f64702fd16f8a03a630b2220f16;hpb=f1a1664ce811db565edb26e2ebab31832557e666;p=pspp diff --git a/Smake b/Smake index 241db08937..306e115e42 100644 --- a/Smake +++ b/Smake @@ -152,7 +152,13 @@ src/ui/gui/icons/categories/16x16/variable-ordinal.png \ src/ui/gui/icons/categories/16x16/align-right.png \ src/ui/gui/icons/categories/16x16/variable-date-nominal.png \ src/ui/gui/icons/categories/16x16/variable-date-ordinal.png \ -src/ui/gui/icons/categories/16x16/variable-string-scale.png +src/ui/gui/icons/categories/16x16/variable-string-scale.png \ +src/ui/gui/icons/categories/16x16/variable-role-partition.png \ +src/ui/gui/icons/categories/16x16/variable-role-target.png \ +src/ui/gui/icons/categories/16x16/variable-role-split.png \ +src/ui/gui/icons/categories/16x16/variable-role-input.png \ +src/ui/gui/icons/categories/16x16/variable-role-none.png \ +src/ui/gui/icons/categories/16x16/variable-role-both.png MIMETYPE_ICONS = \ src/ui/gui/icons/mimetypes/32x32/application-x-spss-por.png \ @@ -415,7 +421,17 @@ clean: .PHONY: all gettextize clean + +# The "convert" program from imagemagick can be used to create png from svg but doesn't properly deal +# with the alpha channels. Therefore, it is not recommended for production pspp builds, but might +# be useful to get something working on a platform which doesn't have a working gimp. + +#svg2png=convert $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 mkdir -p $(dir $@) - gimp -i -b '(let* ((image (car (gimp-file-load 1 "$<" "$<")))) (gimp-image-attach-parasite image (list "gimp-comment" 0 "$(shell cat $(lastword $^))" )) (gimp-file-save 1 image (car (gimp-image-get-active-drawable image)) "$@" "$@")) (gimp-quit 1)' + $(call svg2png,$<,$(lastword $^),$@)