]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add translations status pages to the docball
authorJohn Mandereau <john.mandereau@gmail.com>
Sat, 9 Aug 2008 20:46:57 +0000 (22:46 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Mon, 11 Aug 2008 16:11:57 +0000 (18:11 +0200)
- rewrite HTML prerequisites as a list,

- create doc-i18n-root local stepmake template.

Documentation/GNUmakefile
Documentation/de/GNUmakefile
Documentation/es/GNUmakefile
Documentation/fr/GNUmakefile
make/doc-i18n-root-rules.make [new file with mode: 0644]
make/doc-i18n-root-targets.make [new file with mode: 0644]
make/doc-i18n-root-vars.make [new file with mode: 0644]

index 15b6a6f297bec3e562a6497df84475d4bf553f63..d265a1ee96fc1bc1a3f3c3f576e24c7a1cc5218d 100644 (file)
@@ -6,14 +6,17 @@ SUBDIRS=user bibliography pictures topdocs misc po $(LANGS)
 STEPMAKE_TEMPLATES=documentation texinfo tex
 LOCALSTEPMAKE_TEMPLATES=lilypond ly
 LILYPOND_BOOK_FLAGS=--extra-options '-e "(ly:set-option (quote internal-type-checking) \#t)"'
-README_TOP_FILES= DEDICATION THANKS 
+README_TOP_FILES= DEDICATION THANKS
 EXTRA_DIST_FILES= texinfo.css TRANSLATION
 
 include $(depth)/make/stepmake.make
 
+HTML_PAGE_NAMES= index devel translations
+OUT_HTML_FILES= $(HTML_PAGE_NAMES:%=$(outdir)/%.html)
+
 default: local-doc
 
-local-WWW: txt-to-html $(outdir)/index.html $(outdir)/devel.html
+local-WWW: txt-to-html $(OUT_HTML_FILES)
 
 local-WWW-clean: deep-WWW-clean
 
index eee4de1f5186e78f2ae735f7c1a7b90ec74a60c9..8acbe9e78cff16abff1a0febca97db8898f5b2b7 100644 (file)
@@ -2,10 +2,6 @@ ISOLANG = de
 depth = ../..
 SUBDIRS = user
 STEPMAKE_TEMPLATES = documentation
+LOCALSTEPMAKE_TEMPLATES = doc-i18n-root
 
 include $(depth)/make/stepmake.make
-
-local-WWW: lang-merge
-
-lang-merge: $(outdir)/index.html
-       ln -f $(outdir)/index.html $(depth)/Documentation/$(outdir)/index.$(ISOLANG).html
index bc58051120e9346cf93d27aaa1e778e36c1e55f6..90e3f678e975d77fd8f8f875023d7e2452c96b31 100644 (file)
@@ -2,10 +2,6 @@ ISOLANG = es
 depth = ../..
 SUBDIRS = user
 STEPMAKE_TEMPLATES = documentation
+LOCALSTEPMAKE_TEMPLATES = doc-i18n-root
 
 include $(depth)/make/stepmake.make
-
-local-WWW: lang-merge
-
-lang-merge: $(outdir)/index.html
-       ln -f $(outdir)/index.html $(depth)/Documentation/$(outdir)/index.$(ISOLANG).html
index 003d9c02bdd3436c73ae79351ed3ecfdd87f0572..ad17d7e4cc83e3f7aea2b3c93343156652d0ab75 100644 (file)
@@ -2,10 +2,6 @@ ISOLANG = fr
 depth = ../..
 SUBDIRS = user
 STEPMAKE_TEMPLATES = documentation
+LOCALSTEPMAKE_TEMPLATES = doc-i18n-root
 
 include $(depth)/make/stepmake.make
-
-local-WWW: lang-merge
-
-lang-merge: $(outdir)/index.html
-       ln -f $(outdir)/index.html $(depth)/Documentation/$(outdir)/index.$(ISOLANG).html
diff --git a/make/doc-i18n-root-rules.make b/make/doc-i18n-root-rules.make
new file mode 100644 (file)
index 0000000..1bb8bf6
--- /dev/null
@@ -0,0 +1 @@
+# empty
diff --git a/make/doc-i18n-root-targets.make b/make/doc-i18n-root-targets.make
new file mode 100644 (file)
index 0000000..4e917c5
--- /dev/null
@@ -0,0 +1,4 @@
+default:
+
+local-WWW: $(OUT_HTML_FILES)
+       $(PYTHON) $(buildscript-dir)/mass-link.py --prepend-suffix .$(ISOLANG) hard $(outdir) $(top-build-dir)/Documentation/$(outdir) $(HTML_FILES)
diff --git a/make/doc-i18n-root-vars.make b/make/doc-i18n-root-vars.make
new file mode 100644 (file)
index 0000000..fdf8664
--- /dev/null
@@ -0,0 +1,3 @@
+HTML_PAGE_NAMES = index translations
+HTML_FILES = $(HTML_PAGE_NAMES:%=%.html)
+OUT_HTML_FILES = $(HTML_PAGE_NAMES:%=$(outdir)/%.html)