stephan@54: # Makefile to get images from vector drawings. stephan@54: # Sketch (.sk) stephan@54: # SVG (.sk) stephan@54: stephan@54: SKS=$(wildcard *.sk) stephan@54: SVG=$(wildcard *.svg) stephan@54: PNG=$(wildcard *.png) stephan@54: stephan@54: OUTPUT_PNG_SK=$(SKS:sk=png) stephan@54: OUTPUT_PNG_SVG=$(SVG:svg=png) stephan@54: OUTPUT_PS_PNG=$(PNG:png=ps) stephan@54: OUTPUT_PS_SVG=$(SVG:svg=eps) stephan@54: stephan@54: all: png stephan@54: stephan@54: png: $(OUTPUT_PNG_SK) $(OUTPUT_PNG_SVG) stephan@54: stephan@54: ps: $(OUTPUT_PS_SVG) $(OUTPUT_PS_PNG) stephan@54: stephan@54: %.png: %.sk stephan@54: sk2ppm --bbox $*.sk | pnmtopng - > $*.png stephan@54: stephan@54: %.png: %.svg stephan@54: inkscape -d 150 -D -e $*.png $*.svg stephan@54: stephan@54: %.ps: %.png stephan@54: convert $*.png $*.ps stephan@54: stephan@54: %.eps: %.svg stephan@54: inkscape -d 150 -D -E $*.eps $*.svg stephan@54: stephan@54: clean: stephan@54: rm -f $(OUTPUT_PNG_SK) 2>/dev/null; true stephan@54: rm -f $(OUTPUT_PNG_SVG) 2>/dev/null; true stephan@54: rm -f $(OUTPUT_PS_PNG) 2>/dev/null; true stephan@54: rm -f $(OUTPUT_PS_SVG) 2>/dev/null; true stephan@54: stephan@54: stephan@54: .PHONY: png ps clean