]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/web/examples/GNUmakefile
Web: tune second navigation bar and complete i18n
[lilypond.git] / Documentation / web / examples / GNUmakefile
1 depth=../../..
2 LOCALSTEPMAKE_TEMPLATES=lilypond ly
3 include $(depth)/make/stepmake.make
4
5 LILYPOND_PREVIEW = $(LILYPOND_BINARY) -dpreview -dresolution=150
6
7 OUT_PNG_FILES = $(LY_FILES:%.ly=$(outdir)/%.png)
8 OUT_PNG_PAGES = $(PNG_PAGES:%=$(outdir)/%.png)
9
10 OUT_SMALL_PNG_FILES = $(OUT_PNG_FILES:%.png=%-small.png)
11
12 ifeq ($(out),www)
13 all: $(OUT_PNG_FILES) $(OUT_SMALL_PNG_FILES)
14 endif
15
16 $(outdir)/%.png: %.ly
17         $(LILYPOND_PREVIEW) -o $(outdir) $<
18         mv $(outdir)/$*.preview.png $@
19
20 $(outdir)/%-small.png: $(outdir)/%.png
21         pngtopnm $< | pnmscale -w=600 | pnmtopng > $@
22