From: Graham Percival Date: Mon, 17 Aug 2009 21:21:52 +0000 (-0700) Subject: Doc build: add rule to convert svg->png. X-Git-Tag: release/2.13.4-1~179^2~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ab10af93887f119de38b66a9866c83b0b1fdbba4;p=lilypond.git Doc build: add rule to convert svg->png. --- diff --git a/Documentation/pictures/GNUmakefile b/Documentation/pictures/GNUmakefile index a360164335..5aa845a6d1 100644 --- a/Documentation/pictures/GNUmakefile +++ b/Documentation/pictures/GNUmakefile @@ -10,6 +10,7 @@ EXTRA_DIST_FILES = $(BITMAP_IMAGES) $(EPS_ILLUSTRATIONS) $(SVG_FILES) OUT_PDF_IMAGES = $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.pdf) OUT_BITMAP_IMAGES = $(BITMAP_IMAGES:%=$(outdir)/%) OUT_BITMAP_IMAGES += $(EPS_ILLUSTRATIONS:%.pdf=$(outdir)/%.png) +OUT_SVG_IMAGES = $(SVG_FILES:%.svg=$(outdir)/%.png) STEPMAKE_TEMPLATES = documentation @@ -21,7 +22,7 @@ include $(depth)/make/stepmake.make default: ifeq ($(out),www) -local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) +local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) $(OUT_SVG_IMAGES) endif ######### @@ -33,6 +34,9 @@ $(outdir)/%-flat-gray.png: %-flat-gray.png $(outdir)/%-flat-bw.png: %-flat-bw.png convert -depth 8 -geometry 50x50% $< $@ +$(outdir)/%.png: %.svg + convert $< $@ + $(outdir)/%.png: %.png ln -f $< $@