X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fweb%2Fly-examples%2FGNUmakefile;fp=Documentation%2Fweb%2Fly-examples%2FGNUmakefile;h=473d16b96764b4aef9644635eda5c6988bedb421;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/web/ly-examples/GNUmakefile b/Documentation/web/ly-examples/GNUmakefile new file mode 100644 index 0000000000..473d16b967 --- /dev/null +++ b/Documentation/web/ly-examples/GNUmakefile @@ -0,0 +1,22 @@ +depth=../../.. +LOCALSTEPMAKE_TEMPLATES=lilypond ly +include $(depth)/make/stepmake.make + +LILYPOND_PREVIEW = $(LILYPOND_BINARY) -dpreview -dresolution=150 + +OUT_PNG_FILES = $(LY_FILES:%.ly=$(outdir)/%.png) +OUT_PNG_PAGES = $(PNG_PAGES:%=$(outdir)/%.png) + +OUT_SMALL_PNG_FILES = $(OUT_PNG_FILES:%.png=%-small.png) + +ifeq ($(out),www) +all: $(OUT_PNG_FILES) $(OUT_SMALL_PNG_FILES) +endif + +$(outdir)/%.png: %.ly + $(LILYPOND_PREVIEW) -o $(outdir) $< + mv $(outdir)/$*.preview.png $@ + +$(outdir)/%-small.png: $(outdir)/%.png + pngtopnm $< | pnmscale -w=600 | pnmtopng > $@ +