From 02202c76fef58c14b928dd11f180c87864e01999 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 2 Jan 2008 17:00:22 -0700 Subject: [PATCH] docs/Makefile: rules to turn our SVG images into .png and .eps forms --- docs/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/Makefile diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 00000000..c8671a58 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,18 @@ + +SOURCES = CHK-hashes.svg file-encoding1.svg file-encoding2.svg file-encoding3.svg file-encoding4.svg file-encoding5.svg file-encoding6.svg subtree1.svg + +PNGS = $(patsubst %.svg,%.png,$(SOURCES)) +EPSS = $(patsubst %.svg,%.eps,$(SOURCES)) + +.PHONY: images-png images-eps +all: $(PNGS) $(EPSS) +images-png: $(PNGS) +images-eps: $(EPSS) + +%.png: %.svg + inkscape -b white -d 90 --export-png $@ $< +%.eps: %.svg + inkscape --export-eps $@ $< + +clean: + rm -f *.png *.eps -- 2.45.2