3 # urg, can't name itely templates foo.itely.in because of standard rule
5 STEPMAKE_TEMPLATES=documentation texinfo
6 LOCALSTEPMAKE_TEMPLATES=lilypond ly
7 EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list)
12 MAIN_INFO_DOC = lilypond-snippets
13 INFO_DOCS = lilypond-snippets
14 INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
15 INFO_IMAGES_DIR = lilypond-snippets
16 DEST_INFO_IMAGES_SUBDIR = input/lsr
19 include $(depth)/make/stepmake.make
21 IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
22 GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
24 $(outdir)/%.itely: %-intro.itely %.snippet-list
25 xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f doctitle,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
27 $(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES) $(LY_FILES)
29 source-links = $(outdir)/source $(outdir)/lilypond-snippets/source
38 ln -sf $(depth)/.. $(@)
43 # cancel install-info target and $(INFO_FILES) 'default' target
44 # (there is no lilypond-snippets.info without images)
51 # All web targets, except info image symlinks and info docs are
52 # installed in non-recursing target from TOP-SRC-DIR
53 local-install-WWW: local-install-info
54 local-uninstall-WWW: local-uninstall-info
57 rm -f $(INFO_IMAGES_DIR)
59 local-WWW-1: info $(outdir)/lilypond-snippets.pdf \
60 $(outdir)/lilypond-snippets.texi \
61 $(outdir)/lilypond-snippets.xref-map \
62 $(outdir)/lilypond.xref-map \
63 $(outdir)/lilypond-learning.xref-map
65 local-WWW-2: $(outdir)/lilypond-snippets/index.html \
66 $(outdir)/lilypond-snippets-big-page.html \
70 $(PYTHON) $(buildscript-dir)/extract_texi_filenames.py $<
72 $(outdir)/lilypond.xref-map $(outdir)/lilypond-learning.xref-map:
73 ln -sf ../../../Documentation/user/$@ $@