]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix disappearing PNGs in Info HTML translated docs
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 6 Feb 2007 18:41:06 +0000 (19:41 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 9 Feb 2007 16:21:01 +0000 (17:21 +0100)
make/doclang-targets.make

index 1411b8c5f7d96375c8cd74f58888097b66874092..a25935017511d63bac5a83658f40074e26fbbf34 100644 (file)
@@ -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: