]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/pictures/GNUmakefile
Doc build: add rule to convert svg->png.
[lilypond.git] / Documentation / pictures / GNUmakefile
index a360164335a2d9398ef6cb037010ca7fcf71276c..5aa845a6d1682ccc89f9465f6db5b39ff6fc2a32 100644 (file)
@@ -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 $< $@