Changeset 1365
- Timestamp:
- 01/03/09 14:50:06 (4 years ago)
- Files:
-
- 1 modified
-
grafik/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grafik/Makefile
r1364 r1365 1 ALL=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg")) 2 EBENENSVG=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg) 3 EBENEN=$(foreach file, ${EBENENSVG}, tastatur3d/${file}) 4 SVGFILES=${ALL} ${EBENEN} 1 SVGFILES=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg")) 2 PDFFILES=$(addsuffix .pdf,$(basename ${SVGFILES})) 3 PNGFILES=$(addsuffix .png,$(basename ${SVGFILES})) 5 4 6 PDFFILES=$(addsuffix .pdf,$(basename ${SVGFILES}))7 8 HAUPT=$(foreach file, ${EBENEN SVG}, tastatur3d/hauptfeld/${file})9 ZIFFERN=$(foreach file, ${EBENEN SVG}, tastatur3d/ziffernfeld/${file})10 HAUPTZIFFERN=$(foreach file, ${EBENEN SVG}, tastatur3d/haupt_ziffern_feld/${file})11 PNGFILES=$(addsuffix .png,$(basename ${SVGFILES} ${HAUPT} ${ZIFFERN} ${HAUPTZIFFERN})) 5 EBENEN=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg) 6 EBENENSVG=$(foreach file, ${EBENEN}, tastatur3d/${file}) 7 HAUPT=$(foreach file, ${EBENEN}, tastatur3d/hauptfeld/${file}) 8 ZIFFERN=$(foreach file, ${EBENEN}, tastatur3d/ziffernfeld/${file}) 9 HAUPTZIFFERN=$(foreach file, ${EBENEN}, tastatur3d/haupt_ziffern_feld/${file}) 10 EBENENPNG=$(addsuffix .png,$(basename ${EBENENSVG} ${HAUPT} ${ZIFFERN} ${HAUPTZIFFERN})) 12 11 13 12 default: pdf png 14 13 pdf: ${PDFFILES} 15 png: ${PNGFILES} 14 png: ${PNGFILES} ebenen 15 ebenen: ${EBENENPNG} 16 16 17 17 clean: cleanpng cleanpdf 18 rm -f $(EBENEN)19 18 20 cleanpng: 19 cleanebenen: 20 rm -f ${EBENENSVG} ${EBENENPNG} 21 $(foreach dir, hauptfeld ziffernfeld haupt_ziffern_feld, if [ -d tastatur3d/${dir} ];then rmdir tastatur3d/${dir}; fi;) 22 23 cleanpng: cleanebenen 21 24 rm -f ${PNGFILES} 22 $(foreach dir, hauptfeld ziffernfeld haupt_ziffern_feld, if [ -d tastatur3d/${dir} ];then rmdir tastatur3d/${dir}; fi;)23 25 24 26 cleanpdf: … … 33 35 mkdir -p tastatur3d/hauptfeld 34 36 inkscape --without-gui --export-id="Haupttastaturfeld" --export-png=$@ -h200 tastatur3d/$*.svg 35 mogrify -colors 256 -depth 8 -quality 100+dither $@37 mogrify -colors 256 -depth 8 +dither $@ 36 38 37 39 tastatur3d/ziffernfeld/%.png: tastatur3d/%.svg 38 40 mkdir -p tastatur3d/ziffernfeld 39 41 inkscape --without-gui --export-id="Ziffernblock" --export-png=$@ -h200 tastatur3d/$*.svg 40 mogrify -colors 256 -depth 8 -quality 100+dither $@42 mogrify -colors 256 -depth 8 +dither $@ 41 43 42 44 tastatur3d/haupt_ziffern_feld/%.png: tastatur3d/%.svg tastatur3d/hauptfeld/%.png tastatur3d/ziffernfeld/%.png … … 45 47 convert +append tastatur3d/hauptfeld/$*.png /tmp/$*_tmp.png $@ 46 48 rm /tmp/$*_tmp.png 47 mogrify -colors 256 -depth 8 -quality 100+dither $@49 mogrify -colors 256 -depth 8 +dither $@ 48 50 49 51 %.pdf: %.svg … … 52 54 %.png: %.svg 53 55 inkscape --without-gui --export-png=$@ -w1000 $< 54 mogrify -colors 256 -depth 8 -quality 100+dither $@56 mogrify -colors 256 -depth 8 +dither $@ 55 57 56 .PHONY: clean cleanpng cleanpdf default pdf png58 .PHONY: default clean pdf cleanpdf png cleanpng ebenen cleanebenen
