From f9b49de46c08d240207881075f45e89f8429b180 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Tue, 6 Feb 2007 19:41:06 +0100 Subject: [PATCH] Fix disappearing PNGs in Info HTML translated docs --- make/doclang-targets.make | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/make/doclang-targets.make b/make/doclang-targets.make index 1411b8c5f7..a259350175 100644 --- a/make/doclang-targets.make +++ b/make/doclang-targets.make @@ -17,14 +17,26 @@ $(outdir)/lilypond/index.html: $(outdir)/lilypond.nexi doc-po -$(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --css-include=$(top-src-dir)/Documentation/texinfo.css --html $< find $(outdir) -name '*.html' | xargs grep -L 'UNTRANSLATED NODE: IGNORE ME' | xargs $(PYTHON) $(buildscript-dir)/html-gettext.py $(buildscript-dir) $(top-build-dir)/Documentation/po/$(outdir) $(ISOLANG) -$(outdir)/lilypond.html: $(outdir)/lilypond.nexi - -$(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $< +# we don't make the big page until the whole manual is translated +# if this happens, we'll have to define local-WWW differently for this language +#$(outdir)/lilypond.html: $(outdir)/lilypond.nexi +# -$(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $< -local-WWW: $(outdir)/lilypond.html $(outdir)/lilypond/index.html lang-merge +local-WWW: png-ln $(outdir)/lilypond/index.html lang-merge lang-merge: $(foreach i, $(shell find $(outdir) -name '*.html' | xargs grep -L --label="" 'UNTRANSLATED NODE: IGNORE ME'), ln -f $(i) $(i:$(outdir)/%.html=$(depth)/Documentation/user/$(outdir)/%.$(ISOLANG).html) &&) true +LINKED_PNGS = henle-flat-gray.png baer-flat-gray.png lily-flat-bw.png + +# makeinfo is broken, it MUST have PNGs in output dir +# strangely, this is not true for ly PNGs +# symlinking PNGs... +png-ln: + mkdir -p $(outdir)/lilypond + cd $(outdir) && $(foreach i, $(LINKED_PNGS), ln -sf ../$(depth)/Documentation/user/$(i) $(i) &&) true + cd $(outdir)/lilypond && $(foreach i, $(LINKED_PNGS), ln -sf ../../$(depth)/Documentation/user/$(i) $(i) &&) true + local-WWW-clean: deep-WWW-clean deep-WWW-clean: -- 2.39.2