]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/GNUmakefile
Change Snippets compilation
[lilypond.git] / input / lsr / GNUmakefile
index a6291b915cd584674d18fe72eeacb4bc81800764..ec25f7310d5bda726fa87686ea9c1eba92bbd6b5 100644 (file)
@@ -1,21 +1,44 @@
-depth = ../../
+depth = ../..
 
-# NR 1
-SUBDIRS = pitches rhythms expressive repeats simultaneous staff editorial text
-# NR 2
-SUBDIRS += vocal chords piano percussion guitar strings bagpipes ancient
+# urg, can't name itely templates foo.itely.in because of standard rule
 
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly
+EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list)
 
-SUBDIRS += other
-
-### FIXME: temporary template for creating other dirs.
-###  will be removed once everything else is stable.
-SUBDIRS += null
+MAIN_INFO_DOC = lilypond-snippets
+INFO_DOCS = lilypond-snippets
+INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
+INFO_IMAGES_DIR = lilypond-snippets
+DEST_INFO_IMAGES_SUBDIR = input/lsr
 
-STEPMAKE_TEMPLATES=documentation texinfo tex
-LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
-EXTRA_DIST_FILES=README
 include $(depth)/make/stepmake.make
 
-TITLE=LilyPond Examples
+IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
+GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
+
+$(outdir)/%.itely: %-intro.itely %.snippet-list
+       xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f printfilename,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
+
+$(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES)
+
+info: $(INFO_FILES)
+
+ifneq ($(out),www)
+# cancel install-info target
+# (there is no lilypond-snippets.info without images)
+local-install-info:
+       true
+endif
+
+# All web targets, except info image symlinks and info docs are
+# installed in non-recursing target from TOP-SRC-DIR
+local-install-WWW: local-install-info
+local-uninstall-WWW: local-uninstall-info
+
+local-clean:
+       rm -f $(INFO_IMAGES_DIR)
 
+local-WWW: info $(outdir)/lilypond-snippets.pdf \
+  $(outdir)/lilypond-snippets/index.html \
+  $(outdir)/lilypond-snippets-big-page.html