From: Reinhold Kainhofer Date: Wed, 6 Aug 2008 19:17:58 +0000 (+0200) Subject: texi2html: create .xref-map files for translations, link snippets and internals X-Git-Tag: release/2.11.58-1~32^2~81 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8800c721024c34ec50b54ca4c0cdf4ce4a82f56d;p=lilypond.git texi2html: create .xref-map files for translations, link snippets and internals --- diff --git a/Documentation/de/user/GNUmakefile b/Documentation/de/user/GNUmakefile index 662d176be1..810efc38e7 100644 --- a/Documentation/de/user/GNUmakefile +++ b/Documentation/de/user/GNUmakefile @@ -3,3 +3,13 @@ depth = ../../.. LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang include $(depth)/make/stepmake.make + +local-WWW-1: $(XREF_MAP_FILES) $(outdir)/lilypond-snippets.xref-map \ + $(outdir)/music-glossary.xref-map \ + $(outdir)/lilypond-internals.xref-map + +$(outdir)/lilypond-snippets.xref-map: + ln -sf ../../../../input/lsr/$@ $@ + +$(outdir)/lilypond-internals.xref-map $(outdir)/music-glossary.xref-map: + ln -sf ../../../user/$@ $@ diff --git a/Documentation/es/user/GNUmakefile b/Documentation/es/user/GNUmakefile index 4928d75252..d51764115b 100644 --- a/Documentation/es/user/GNUmakefile +++ b/Documentation/es/user/GNUmakefile @@ -3,3 +3,13 @@ depth = ../../.. LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang include $(depth)/make/stepmake.make + +local-WWW-1: $(XREF_MAP_FILES) $(outdir)/lilypond-snippets.xref-map \ + $(outdir)/music-glossary.xref-map \ + $(outdir)/lilypond-internals.xref-map + +$(outdir)/lilypond-snippets.xref-map: + ln -sf ../../../../input/lsr/$@ $@ + +$(outdir)/lilypond-internals.xref-map $(outdir)/music-glossary.xref-map: + ln -sf ../../../user/$@ $@ diff --git a/Documentation/fr/user/GNUmakefile b/Documentation/fr/user/GNUmakefile index e492cfeb9c..f32ebf319f 100644 --- a/Documentation/fr/user/GNUmakefile +++ b/Documentation/fr/user/GNUmakefile @@ -3,3 +3,12 @@ depth = ../../.. LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang include $(depth)/make/stepmake.make +local-WWW-1: $(XREF_MAP_FILES) $(outdir)/lilypond-snippets.xref-map \ + $(outdir)/music-glossary.xref-map \ + $(outdir)/lilypond-internals.xref-map + +$(outdir)/lilypond-snippets.xref-map: + ln -sf ../../../../input/lsr/$@ $@ + +$(outdir)/lilypond-internals.xref-map $(outdir)/music-glossary.xref-map: + ln -sf ../../../user/$@ $@ diff --git a/make/doclang-rules.make b/make/doclang-rules.make index 62321a0d9f..fdbe237533 100644 --- a/make/doclang-rules.make +++ b/make/doclang-rules.make @@ -1,9 +1,9 @@ -$(outdir)/%/index.html: $(outdir)/%.texi $(OUT_PNG_IMAGES) $(outdir)/version.itexi +$(outdir)/%/index.html: $(outdir)/%.texi $(outdir)/%.xref-map $(OUT_PNG_IMAGES) $(outdir)/version.itexi mkdir -p $(dir $@) $(TEXI2HTML) --I=$(outdir) $(TEXI2HTML_FLAGS) --output=$(dir $@) --prefix=index --split=section $(TEXI2HTML_INIT) $< cp $(top-src-dir)/Documentation/lilypond*.css $(dir $@) -$(outdir)/%-big-page.html: $(outdir)/%.texi $(OUT_PNG_IMAGES) $(outdir)/version.itexi +$(outdir)/%-big-page.html: $(outdir)/%.texi $(outdir)/%.xref-map $(OUT_PNG_IMAGES) $(outdir)/version.itexi $(TEXI2HTML) --I=$(outdir) $(TEXI2HTML_FLAGS) --output=$@ $(TEXI2HTML_INIT) $< cp $(top-src-dir)/Documentation/lilypond*.css $(dir $@) @@ -21,6 +21,9 @@ $(outdir)/version.%: $(top-src-dir)/VERSION $(outdir)/%.png: $(top-build-dir)/Documentation/user/$(outdir)/%.png ln -f $< $@ +$(outdir)/%.xref-map: $(outdir)/%.texi + $(PYTHON) $(buildscript-dir)/extract_texi_filenames.py $< + # This makes sure lilypond-doc gettext domain has been compiled # before lilypond-book runs $(TELY_FILES): doc-po diff --git a/make/doclang-targets.make b/make/doclang-targets.make index 25cea37548..72e8ada4ad 100644 --- a/make/doclang-targets.make +++ b/make/doclang-targets.make @@ -1,6 +1,6 @@ default: -local-WWW-1: $(MASTER_TEXI_FILES) $(PDF_FILES) +local-WWW-1: $(MASTER_TEXI_FILES) $(PDF_FILES) $(XREF_MAP_FILES) # BIG_PAGE_HTML_FILES is defined differently in each language makefile local-WWW-2: $(DEEP_HTML_FILES) $(BIG_PAGE_HTML_FILES) diff --git a/make/doclang-vars.make b/make/doclang-vars.make index 9e34dac5ec..e0bbdfb57b 100644 --- a/make/doclang-vars.make +++ b/make/doclang-vars.make @@ -24,6 +24,7 @@ TELY_FILES := $(call src-wildcard,*.tely) MASTER_TEXI_FILES := $(TELY_FILES:%.tely=$(outdir)/%.texi) DEEP_HTML_FILES := $(TELY_FILES:%.tely=$(outdir)/%/index.html) PDF_FILES := $(TELY_FILES:%.tely=$(outdir)/%.pdf) +XREF_MAP_FILES := $(TELY_FILES:%.tely=$(outdir)/%.xref-map) ITELY_FILES := $(call src-wildcard,*.itely) ITEXI_FILES := $(call src-wildcard,*.itexi)