]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: create .xref-map files for translations, link snippets and internals
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 6 Aug 2008 19:17:58 +0000 (21:17 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 6 Aug 2008 19:17:58 +0000 (21:17 +0200)
Documentation/de/user/GNUmakefile
Documentation/es/user/GNUmakefile
Documentation/fr/user/GNUmakefile
make/doclang-rules.make
make/doclang-targets.make
make/doclang-vars.make

index 662d176be1211627d892f31f916b79908d9b5a6a..810efc38e774dd72e0aaad6ff1e716640648f093 100644 (file)
@@ -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/$@ $@
index 4928d752525e7bf3553c786c4d6931fec19ea5da..d51764115b973e42e72a6f6921d76c7d4227d459 100644 (file)
@@ -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/$@ $@
index e492cfeb9c1166f13a2e75d8c556133bb901fc49..f32ebf319fe49b6386620680696b03f49203e252 100644 (file)
@@ -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/$@ $@
index 62321a0d9fc0d274eb6a5d087c8a6b4a1d5e88a1..fdbe237533f1bd06f676ebcac1fbaef98573a6b6 100644 (file)
@@ -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
index 25cea3754863c7de68001d3811c72faa5eb5fd81..72e8ada4ad4060108160ad8633126e6e5db795f9 100644 (file)
@@ -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)
index 9e34dac5ecbf1ecf694949089c3a0ffcb059665d..e0bbdfb57bb87256c7b412708c002cc0a7a9ec55 100644 (file)
@@ -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)