bernhard@1171: # Makefile inspired from oxygen-icons-4.13.0/scalable/export_pngs.sh bernhard@1171: # needs ImageMagick and Inkscape bernhard@1171: bernhard@1171: svgs := $(wildcard *.svg) bernhard@1171: bernhard@1171: targets := $(patsubst %.svg,%-48.png,$(svgs)) bernhard@1171: bernhard@1211: all: $(targets) do-changes-16.png bernhard@1171: bernhard@1171: clean: bernhard@1171: rm $(targets) $(patsubst %.svg,%.png,$(svgs)) bernhard@1171: bernhard@1171: %-48.png:%.svg bernhard@1171: inkscape --without-gui "--export-png=$*.png" --export-dpi=72 --export-background-opacity=0 --export-width=512 --export-height=512 "$<" >/dev/null bernhard@1171: convert -filter Sinc -resize 48x48 "$*.png" "$@" bernhard@1171: bernhard@1211: %-16.png:%.svg bernhard@1211: inkscape --without-gui "--export-png=$@" --export-dpi=72 --export-background-opacity=0 --export-width=16 --export-height=16 "$<" >/dev/null bernhard@1211: