]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/GNUmakefile
7d0f7e0d4daa7803c8ac7269d8d5720292bd35e9
[lilypond.git] / input / lsr / GNUmakefile
1 \version "2.11.51"
2 depth = ../..
3
4 # urg, can't name itely templates foo.itely.in because of standard rule
5
6 STEPMAKE_TEMPLATES=documentation texinfo
7 LOCALSTEPMAKE_TEMPLATES=lilypond ly
8 EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list)
9
10 default:
11
12 ifneq ($(out),)
13 MAIN_INFO_DOC = lilypond-snippets
14 INFO_DOCS = lilypond-snippets
15 INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
16 INFO_IMAGES_DIR = lilypond-snippets
17 DEST_INFO_IMAGES_SUBDIR = input/lsr
18 endif
19
20 include $(depth)/make/stepmake.make
21
22 IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
23 GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
24
25 $(outdir)/%.itely: %-intro.itely %.snippet-list
26         xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f doctitle,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
27
28 $(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES) $(LY_FILES)
29
30 source-links = $(outdir)/source $(outdir)/lilypond-snippets/source
31
32 $(outdir)/source:
33         @rm -f $(@)
34         ln -sf $(depth) $(@)
35
36 $(outdir)/%/source:
37         @rm -f $(@)
38         mkdir -p $(dir $@)
39         ln -sf $(depth)/.. $(@)
40
41 info: $(INFO_FILES)
42
43 ifneq ($(out),www)
44 # cancel install-info target and $(INFO_FILES) 'default' target
45 # (there is no lilypond-snippets.info without images)
46 local-install-info:
47
48 $(INFO_FILES):
49         true
50 endif
51
52 # All web targets, except info image symlinks and info docs are
53 # installed in non-recursing target from TOP-SRC-DIR
54 local-install-WWW: local-install-info
55 local-uninstall-WWW: local-uninstall-info
56
57 local-clean:
58         rm -f $(INFO_IMAGES_DIR)
59
60 local-WWW: info $(outdir)/lilypond-snippets.pdf \
61   $(outdir)/lilypond-snippets/index.html \
62   $(outdir)/lilypond-snippets-big-page.html \
63   $(source-links)
64
65 .SECONDARY: