]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/GNUmakefile
Change Snippets compilation
[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 $(call src-wildcard,*.snippet-list)
8
9 MAIN_INFO_DOC = lilypond-snippets
10 INFO_DOCS = lilypond-snippets
11 INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
12 INFO_IMAGES_DIR = lilypond-snippets
13 DEST_INFO_IMAGES_SUBDIR = input/lsr
14
15 include $(depth)/make/stepmake.make
16
17 IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
18 GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
19
20 $(outdir)/%.itely: %-intro.itely %.snippet-list
21         xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f printfilename,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
22
23 $(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES)
24
25 info: $(INFO_FILES)
26
27 ifneq ($(out),www)
28 # cancel install-info target
29 # (there is no lilypond-snippets.info without images)
30 local-install-info:
31         true
32 endif
33
34 # All web targets, except info image symlinks and info docs are
35 # installed in non-recursing target from TOP-SRC-DIR
36 local-install-WWW: local-install-info
37 local-uninstall-WWW: local-uninstall-info
38
39 local-clean:
40         rm -f $(INFO_IMAGES_DIR)
41
42 local-WWW: info $(outdir)/lilypond-snippets.pdf \
43   $(outdir)/lilypond-snippets/index.html \
44   $(outdir)/lilypond-snippets-big-page.html