X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=input%2Flsr%2FGNUmakefile;h=f91dacd38d76370acdd7c6f70adcbacb75f3ffbc;hb=9ae52034113dcfbbc98fd7a0f8075ca3ea2cf3c9;hp=16946ea380e995a088f23360793a473d12894e03;hpb=334e0c7b7466162cfd1763f3166c6070b9bf4caa;p=lilypond.git diff --git a/input/lsr/GNUmakefile b/input/lsr/GNUmakefile index 16946ea380..f91dacd38d 100644 --- a/input/lsr/GNUmakefile +++ b/input/lsr/GNUmakefile @@ -2,10 +2,12 @@ depth = ../.. # urg, can't name itely templates foo.itely.in because of standard rule -STEPMAKE_TEMPLATES=documentation texinfo tex +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 @@ -14,17 +16,26 @@ 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, $^) + 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) -$(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_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) @@ -45,6 +56,11 @@ 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 +local-WWW-1: info $(outdir)/lilypond-snippets.pdf \ + $(outdir)/lilypond-snippets.texi + +local-WWW-2: $(outdir)/lilypond-snippets/index.html \ + $(outdir)/lilypond-snippets-big-page.html \ + $(source-links) + +.SECONDARY: