diff options
author | knittl <knittl@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2015-03-29 19:02:28 +0000 |
---|---|---|
committer | knittl <knittl@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2015-03-29 19:02:28 +0000 |
commit | 3a0cfc3f479ad6aab3a392a8015ebd39e9eba39c (patch) | |
tree | fc70ece47b2b315ff27d0bec12ba9dba36998d2b /grafik/Makefile | |
parent | a893f10863b41183c78e04e47bb0b4896e51421b (diff) | |
download | neo-layout-3a0cfc3f479ad6aab3a392a8015ebd39e9eba39c.tar.gz neo-layout-3a0cfc3f479ad6aab3a392a8015ebd39e9eba39c.tar.bz2 neo-layout-3a0cfc3f479ad6aab3a392a8015ebd39e9eba39c.zip |
Add flat-style keyboard svgs to makefile
git-svn-id: https://svn.neo-layout.org@2466 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'grafik/Makefile')
-rw-r--r-- | grafik/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/grafik/Makefile b/grafik/Makefile index d9e8797..79613f5 100644 --- a/grafik/Makefile +++ b/grafik/Makefile @@ -8,7 +8,7 @@ EBENENPNG=$(addsuffix .png,$(basename ${EBENENSVG} ${HAUPT} ${ZIFFERN} ${HAUPTZI SVGFILES=$(filter-out ./tastatur3d/tastatur_neo_%.svg, $(shell find -name "*.svg")) ref2svg/ref2svg.svg PDFFILES=$(filter-out ./promotion-material/Flyer-fs/neo_logo.pdf, $(addsuffix .pdf,$(basename ${SVGFILES}))) -PNGFILES=$(addsuffix .png,$(basename ${SVGFILES})) +PNGFILES=$(addsuffix .png,$(basename ${SVGFILES})) default: svg pdf png ref2svg/ref2svg.svg: ref2svg/ref2svg.pl ../A-REFERENZ-A/neo20.txt @@ -67,6 +67,15 @@ tastatur3d/haupt_ziffern_feld/%.png: tastatur3d/hauptfeld/%.png tastatur3d/ziffe inkscape --without-gui --export-png=$@ -w1000 $< 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 \ pdf cleanpdf \ |