]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/doclang-targets.make
Merge branch 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond into dev/jmandereau
[lilypond.git] / make / doclang-targets.make
index a25935017511d63bac5a83658f40074e26fbbf34..4f4750c9a72d6c666be1913889b5e0ad7b339222 100644 (file)
@@ -1,49 +1,10 @@
-# assumes depth and ISOLANG are defined
-
-OUT_ITEXI_FILES = $(ITELY_FILES:%.itely=$(outdir)/%.itexi)
-
-LILYPOND_BOOK_INCLUDES += \
-  -I$(top-src-dir)/Documentation/user \
-  -I$(top-build-dir)/Documentation/user/$(outdir)
-
 default:
 
-$(outdir)/lilypond.nexi: $(ITELY_FILES) $(ITEXI_FILES)
-
-MAKEINFO = LANG=$(ISOLANG) $(MAKEINFO_PROGRAM) --force
-
-$(outdir)/lilypond/index.html: $(outdir)/lilypond.nexi doc-po
-       mkdir -p $(dir $@)
-       -$(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
+# BIG_PAGE_HTML_FILES is defined differently in each language makefile
+local-WWW: $(DEEP_HTML_FILES) $(PDF_FILES) doc-po $(BIG_PAGE_HTML_FILES)
        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)
-
-# 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: 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:
-       rm -rf $(outdir)/lilypond
-
-web-clean: clean
-       $(MAKE) out=www local-WWW-clean
+       find $(outdir) -name '*.html' | xargs grep -L --label="" 'UNTRANSLATED NODE: IGNORE ME' | sed 's!$(outdir)/!!g' | xargs $(PYTHON) $(buildscript-dir)/mass-link.py --prepend-suffix .$(ISOLANG) hard $(outdir) $(top-build-dir)/Documentation/user/$(outdir) $(TELY_FILES:%.tely=%.pdf)
+       find $(outdir) \( -name 'lily-??????????.png' -o -name 'lily-??????????.ly' \) | sed 's!$(outdir)/!!g' | xargs $(PYTHON) $(buildscript-dir)/mass-link.py hard $(outdir) $(top-build-dir)/Documentation/user/$(outdir)
 
 doc-po:
-       $(MAKE) -C $(depth)/Documentation/po messages
+       $(MAKE) -C $(depth)/Documentation/po out=www messages