X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FGNUmakefile;h=d798d3ce85230f42973d5e1a2155924360aac00f;hb=722ca6d1bd66fb85e525f2fa25702df7a09dea92;hp=94dcb9c16d8e5c6642b968119f4dd235b5497f27;hpb=d5e97b7348ef8cc18cb1a5bf9b652efa031f6947;p=lilypond.git diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 94dcb9c16d..d798d3ce85 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -134,18 +134,6 @@ $(outdir)/essay.texi: \ $(outdir)/computer-notation.itexi \ $(outdir)/engravingbib.itexi -$(outdir)/others-did.itexi: - BSTINPUTS=$(src-dir)/web/ $(buildscript-dir)/bib2texi \ - -s $(top-src-dir)/Documentation/lily-bib \ - -o $(outdir)/others-did.itexi \ - $(src-dir)/web/others-did.bib - -$(outdir)/we-wrote.itexi: - BSTINPUTS=$(src-dir)/web/ $(buildscript-dir)/bib2texi \ - -s $(top-src-dir)/Documentation/lily-bib \ - -o $(outdir)/we-wrote.itexi \ - $(src-dir)/web/we-wrote.bib - ########### ### Targets @@ -207,12 +195,15 @@ endif ### Rules $(outdir)/lilypond-%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep $(outdir)/version.itexi $(outdir)/weblinks.itexi - $(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$@ $< + $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$@ $<" "$*.makeinfo.log" -# cd $(outdir) rule gets bit hairy for --srcdir configure builds -txt-to-html: - $(foreach a, $(README_TOP_FILES), cp $(top-src-dir)/$(a) $(outdir)/$(a).txt && ) true - $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES) +txt-to-html: $(OUT_TXT_FILES) $(OUT_TXT_FILES:%.txt=%.html) + +$(OUT_TXT_FILES): $(outdir)/%.txt: $(top-src-dir)/% + cp -f $< $@ + +$(OUT_TXT_FILES:%.txt=%.html): $(outdir)/%.html: $(outdir)/%.txt + $(PYTHON) $(step-bindir)/text2html.py $< # Explicitly list the dependencies on generated content $(outdir)/web.texi: $(outdir)/we-wrote.itexi $(outdir)/others-did.itexi $(outdir)/weblinks.itexi @@ -240,11 +231,11 @@ endif # Ugh, using '%' twice not possible $(outdir)/notation/notation.xml: $(outdir)/notation.texi mkdir -p $(dir $@) - $(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$(dir $@) --docbook $< + $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$(dir $@) --docbook $<" "$*.makeinfoxml.log" $(outdir)/internals/internals.xml: $(outdir)/internals.texi mkdir -p $(dir $@) - $(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$(dir $@) --docbook $< + $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$(dir $@) --docbook $<" "$*.makeinfoxml.log" $(outdir)/learning.texi $(outdir)/notation.texi: $(OUT_PDF_IMAGES) @@ -289,8 +280,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 # @@ -380,5 +370,3 @@ update-translation: # what's it gonna be, boy...tranlationS-/translation- translation-status: PYTHONPATH=$(top-src-dir)/python:$(top-src-dir)/python/auxiliar $(PYTHON) $(top-src-dir)/scripts/auxiliar/translations-status.py - -.SECONDARY: