X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FGNUmakefile;h=b1c47c1f7950dbc79663ced0ba74a967b4d30b4e;hb=53da8b7d3773da804e79fd455d168efd9475d2f9;hp=5f04dc880cf1297f4f37d1297e2ff161344313a5;hpb=67e5286be2fdc1cd6d90dfc233663c284ced8ca8;p=lilypond.git diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 5f04dc880c..b1c47c1f79 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -31,6 +31,7 @@ README_TOP_FILES= DEDICATION THANKS IN_ITELY_FILES = $(call src-wildcard,snippets/*-intro.itely) SNIPPET_LY_FILES = $(call src-wildcard,snippets/*.ly) +OUT_SNIPPET_LY_FILES = $(SNIPPET_LY_FILES:%.ly=out/%.ly) EXTRA_DIST_FILES = $(call src-wildcard,*.init) $(call src-wildcard,*.bst) @@ -194,7 +195,7 @@ endif ######### ### Rules -$(outdir)/lilypond-%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep $(outdir)/version.itexi $(outdir)/weblinks.itexi +$(outdir)/lilypond-%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep $(outdir)/version.itexi $(outdir)/weblinks.itexi | $(OUT_TEXINFO_MANUALS) $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$@ $<" "$*.makeinfo.log" txt-to-html: $(OUT_TXT_FILES) $(OUT_TXT_FILES:%.txt=%.html) @@ -253,7 +254,15 @@ $(outdir)/%/source: $(outdir)/%.itely: snippets/%-intro.itely snippets/%.snippet-list xargs $(LYS_TO_TELY) -f doctitle,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^) -$(outdir)/snippets.texi: $(GENERATED_ITELY_FILES) $(SNIPPET_LY_FILES) +$(TEXI_FILES_FROM_TELY): $(GENERATED_ITELY_FILES) $(OUT_SNIPPET_LY_FILES) + +$(OUT_SNIPPET_LY_FILES): out/ly-snippets.dep + +out/ly-snippets.dep: $(SNIPPET_LY_FILES) + mkdir -p snippets/out + $(buildscript-dir)/makesnippets $(src-dir)/snippets snippets/out $(src-dir) + mkdir -p out + touch $@ $(outdir)/%.bib: %.bib ln -f $< $@ @@ -280,8 +289,7 @@ $(outdir)/ly-grammar.txt: $(top-src-dir)/lily/parser.yy # compilation during install, which is a bad thing (tm). $(outdir)/internals.texi: $(LILYPOND_BINARY) - cd $(outdir) && $(LILYPOND_BINARY) --verbose $(top-src-dir)/ly/generate-documentation - + cd $(outdir) && $(buildscript-dir)/run-and-check "$(LILYPOND_BINARY) --verbose $(top-src-dir)/ly/generate-documentation" "generate-documentation.log" ############################################### # Documentation and translations maintenance #