Add flat-style keyboard svgs to makefile

This commit is contained in:
knittl 2015-03-29 19:02:28 +00:00
parent e66d26d85f
commit ae7afbbc5f
1 changed files with 10 additions and 1 deletions

View File

@ -67,6 +67,15 @@ tastatur3d/haupt_ziffern_feld/%.png: tastatur3d/hauptfeld/%.png tastatur3d/ziffe
inkscape --without-gui --export-png=$@ -w1000 $< inkscape --without-gui --export-png=$@ -w1000 $<
optipng $@ optipng $@
FLATPNGS:=$(patsubst %.svg,%.png,$(wildcard flat/tastatur_e*.svg))
$(FLATPNGS): flat/tastatur.css flat/tastatur_base.svg
$(FLATPNGS): %.png: %.svg
sed -e "/^@import url('tastatur.css');$$/{r flat/tastatur.css" -e 'd;}' "$<" > "$<.imported.svg"
inkscape --without-gui --export-png="$@" "$<.imported.svg"
optipng "$@"
rm "$<.imported.svg"
.PHONY: default clean \ .PHONY: default clean \
pdf cleanpdf \ pdf cleanpdf \