summaryrefslogtreecommitdiffstats
path: root/grafik
diff options
context:
space:
mode:
authorben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-03 13:50:06 +0000
committerben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-03 13:50:06 +0000
commit66d92b2af99664a097ed6b1c6d7ccecf37a59d13 (patch)
tree2ed0c47b6b6677a0304f8632f55e0b74f3d24785 /grafik
parentaadf086b6903c5685bf6a58572b3c710c9aa1059 (diff)
Makefile umgebaut, dass komplizierte ebenen-files einzeln zu erzeugen sind (make ebenen)
git-svn-id: https://svn.neo-layout.org@1365 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'grafik')
-rw-r--r--grafik/Makefile38
1 files changed, 20 insertions, 18 deletions
diff --git a/grafik/Makefile b/grafik/Makefile
index dab19dc..d21afa3 100644
--- a/grafik/Makefile
+++ b/grafik/Makefile
@@ -1,26 +1,28 @@
-ALL=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg"))
-EBENENSVG=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg)
-EBENEN=$(foreach file, ${EBENENSVG}, tastatur3d/${file})
-SVGFILES=${ALL} ${EBENEN}
-
+SVGFILES=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg"))
PDFFILES=$(addsuffix .pdf,$(basename ${SVGFILES}))
+PNGFILES=$(addsuffix .png,$(basename ${SVGFILES}))
-HAUPT=$(foreach file, ${EBENENSVG}, tastatur3d/hauptfeld/${file})
-ZIFFERN=$(foreach file, ${EBENENSVG}, tastatur3d/ziffernfeld/${file})
-HAUPTZIFFERN=$(foreach file, ${EBENENSVG}, tastatur3d/haupt_ziffern_feld/${file})
-PNGFILES=$(addsuffix .png,$(basename ${SVGFILES} ${HAUPT} ${ZIFFERN} ${HAUPTZIFFERN}))
+EBENEN=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg)
+EBENENSVG=$(foreach file, ${EBENEN}, tastatur3d/${file})
+HAUPT=$(foreach file, ${EBENEN}, tastatur3d/hauptfeld/${file})
+ZIFFERN=$(foreach file, ${EBENEN}, tastatur3d/ziffernfeld/${file})
+HAUPTZIFFERN=$(foreach file, ${EBENEN}, tastatur3d/haupt_ziffern_feld/${file})
+EBENENPNG=$(addsuffix .png,$(basename ${EBENENSVG} ${HAUPT} ${ZIFFERN} ${HAUPTZIFFERN}))
default: pdf png
pdf: ${PDFFILES}
-png: ${PNGFILES}
+png: ${PNGFILES} ebenen
+ebenen: ${EBENENPNG}
clean: cleanpng cleanpdf
- rm -f $(EBENEN)
-cleanpng:
- rm -f ${PNGFILES}
+cleanebenen:
+ rm -f ${EBENENSVG} ${EBENENPNG}
$(foreach dir, hauptfeld ziffernfeld haupt_ziffern_feld, if [ -d tastatur3d/${dir} ];then rmdir tastatur3d/${dir}; fi;)
+cleanpng: cleanebenen
+ rm -f ${PNGFILES}
+
cleanpdf:
rm -f ${PDFFILES}
@@ -32,25 +34,25 @@ tastatur3d/tastatur_neo_Ebene%.svg: tastatur3d/tastatur_neo_alle_Ebenen.svg
tastatur3d/hauptfeld/%.png: tastatur3d/%.svg
mkdir -p tastatur3d/hauptfeld
inkscape --without-gui --export-id="Haupttastaturfeld" --export-png=$@ -h200 tastatur3d/$*.svg
- mogrify -colors 256 -depth 8 -quality 100 +dither $@
+ mogrify -colors 256 -depth 8 +dither $@
tastatur3d/ziffernfeld/%.png: tastatur3d/%.svg
mkdir -p tastatur3d/ziffernfeld
inkscape --without-gui --export-id="Ziffernblock" --export-png=$@ -h200 tastatur3d/$*.svg
- mogrify -colors 256 -depth 8 -quality 100 +dither $@
+ mogrify -colors 256 -depth 8 +dither $@
tastatur3d/haupt_ziffern_feld/%.png: tastatur3d/%.svg tastatur3d/hauptfeld/%.png tastatur3d/ziffernfeld/%.png
mkdir -p tastatur3d/haupt_ziffern_feld
convert -splice 20x0 -background transparent tastatur3d/ziffernfeld/$*.png /tmp/$*_tmp.png
convert +append tastatur3d/hauptfeld/$*.png /tmp/$*_tmp.png $@
rm /tmp/$*_tmp.png
- mogrify -colors 256 -depth 8 -quality 100 +dither $@
+ mogrify -colors 256 -depth 8 +dither $@
%.pdf: %.svg
inkscape --without-gui --export-pdf=$@ $<
%.png: %.svg
inkscape --without-gui --export-png=$@ -w1000 $<
- mogrify -colors 256 -depth 8 -quality 100 +dither $@
+ mogrify -colors 256 -depth 8 +dither $@
-.PHONY: clean cleanpng cleanpdf default pdf png
+.PHONY: default clean pdf cleanpdf png cleanpng ebenen cleanebenen