X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2FGNUmakefile;h=97e188eb887d052616b348eca17b80f62a2407d7;hb=cbff1a4a581b6c99ff063792b38fba3c1df7df5d;hp=39eff0e469725676f41f18c21b30828ba61895ea;hpb=df2459d457ba9cca8ec6b5dfb071f146aaef117a;p=lilypond.git diff --git a/input/lsr/GNUmakefile b/input/lsr/GNUmakefile index 39eff0e469..97e188eb88 100644 --- a/input/lsr/GNUmakefile +++ b/input/lsr/GNUmakefile @@ -1,12 +1,75 @@ -depth = ../../ +depth = ../.. -SUBDIRS = ancient chords connecting contemporary education expressive guitar parts pitches repeats spacing staff text vocal scheme other +# urg, can't name itely templates foo.itely.in because of standard rule + +STEPMAKE_TEMPLATES=documentation texinfo +LOCALSTEPMAKE_TEMPLATES=lilypond ly +EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list) + +default: + +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 -STEPMAKE_TEMPLATES=documentation texinfo tex -LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc -EXTRA_DIST_FILES=README 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 doctitle,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^) + +$(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES) $(LY_FILES) + +source-links = $(outdir)/source $(outdir)/lilypond-snippets/source + +$(outdir)/source: + @rm -f $(@) + ln -sf $(depth) $(@) + +$(outdir)/%/source: + @rm -f $(@) + mkdir -p $(dir $@) + ln -sf $(depth)/.. $(@) + +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 + +local-clean: + rm -f $(INFO_IMAGES_DIR) + +local-WWW-1: info $(outdir)/lilypond-snippets.pdf \ + $(outdir)/lilypond-snippets.texi \ + $(outdir)/lilypond-snippets.xref-map \ + $(outdir)/lilypond.xref-map \ + $(outdir)/lilypond-learning.xref-map + +local-WWW-2: $(outdir)/lilypond-snippets/index.html \ + $(outdir)/lilypond-snippets-big-page.html \ + $(source-links) + +%.xref-map: %.texi + $(PYTHON) $(buildscript-dir)/extract_texi_filenames.py $< -TITLE=LilyPond Examples +$(outdir)/lilypond.xref-map $(outdir)/lilypond-learning.xref-map: + ln -sf ../../../Documentation/user/$@ $@ +.SECONDARY: