X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2FGNUmakefile;h=16946ea380e995a088f23360793a473d12894e03;hb=e44f9f849d05d3169088f71f4960923b1da826c3;hp=4c12ed94b55b65a377b0a1e83d6a3b08d3cc748f;hpb=f21e96f7088d8faf32b4b15a05ec4418a17c4949;p=lilypond.git diff --git a/input/lsr/GNUmakefile b/input/lsr/GNUmakefile index 4c12ed94b5..16946ea380 100644 --- a/input/lsr/GNUmakefile +++ b/input/lsr/GNUmakefile @@ -1,15 +1,50 @@ -depth = ../../ +depth = ../.. -SUBDIRS = pitches rhythms -SUBDIRS += ancient chords connecting contemporary education expressive -SUBDIRS += guitar parts repeats spacing staff text vocal scheme other -SUBDIRS += engravers nonmusic instrument +# urg, can't name itely templates foo.itely.in because of standard rule STEPMAKE_TEMPLATES=documentation texinfo tex -LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc -EXTRA_DIST_FILES=README +LOCALSTEPMAKE_TEMPLATES=lilypond ly +EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list) + +ifneq ($(out),) +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 +endif + +default: + include $(depth)/make/stepmake.make +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 and $(INFO_FILES) 'default' target +# (there is no lilypond-snippets.info without images) +local-install-info: + +$(INFO_FILES): + 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 -TITLE=LilyPond Examples +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