]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/GNUmakefile
Add LSR tags and improve LSR snippets presentation
[lilypond.git] / input / lsr / GNUmakefile
1 depth = ../..
2
3 # urg, can't name itely templates foo.itely.in because of standard rule
4
5 STEPMAKE_TEMPLATES=documentation texinfo tex
6 LOCALSTEPMAKE_TEMPLATES=lilypond ly
7 EXTRA_DIST_FILES=README
8
9 include $(depth)/make/stepmake.make
10
11 IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
12 GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
13
14 $(outdir)/%.itely: %-intro.itely %.snippet-list
15         xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f printfilename,texidoc,verbatim --name=$@ --template=$< < $*.snippet-list
16
17 $(outdir)/snippets.texi: snippets.tely $(GENERATED_ITELY_FILES)
18         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) $<
19
20 $(outdir)/snippets-big-page.html: $(outdir)/snippets.texi $(OUT_PNG_IMAGES)
21         $(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $<
22
23
24 $(outdir)/snippets/index.html: $(outdir)/snippets.texi $(OUT_PNG_IMAGES) $(OUT_EPS_IMAGES)
25         mkdir -p $(dir $@)
26         $(MAKEINFO) -I$(outdir) --output=$(dir $@) --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
27
28 local-WWW: $(outdir)/snippets.pdf $(outdir)/snippets/index.html $(outdir)/snippets-big-page.html