]> git.donarmstrong.com Git - lilypond.git/blob - make/doc-i18n-root-vars.make
Doc-es: update Usage/Suggestions.
[lilypond.git] / make / doc-i18n-root-vars.make
1 # ISOLANG must be defined
2
3 LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
4
5 TELY_FILES := $(call src-wildcard,*.tely)
6 TEXI_FILES := $(call src-wildcard,*.texi)
7 MASTER_TEXI_FILES := $(TEXI_FILES:%=$(outdir)/%) $(TELY_FILES:%.tely=$(outdir)/%.texi)
8
9 TEXINFO_MANUALS =\
10  $(TELY_FILES:%.tely=%)\
11  $(TEXI_FILES:%.texi=%)
12 OUT_TEXINFO_MANUALS = $(TEXINFO_MANUALS:%=$(outdir)/%.texi)
13
14 TOPDIR_HTML_MANUALS = 
15 SPLIT_HTML_MANUALS = $(foreach manual, $(TEXINFO_MANUALS),\
16  $(if $(findstring $(manual), $(UNSPLIT_HTML_MANUALS)),,$(manual)))
17 NOT_TOPDIR_HTML_MANUALS = $(foreach manual, $(SPLIT_HTML_MANUALS),\
18  $(if $(findstring $(manual), $(TOPDIR_HTML_MANUALS)),,$(manual)))
19
20 OUT_HTML_FILES += $(UNSPLIT_HTML_MANUALS:%=$(top-build-dir)/Documentation/$(outdir)/%.$(ISOLANG).html) \
21  $(TOPDIR_HTML_MANUALS:%=$(outdir)/index.$(ISOLANG).html)
22 BIG_PAGE_HTML_FILES := $(SPLIT_HTML_MANUALS:%=$(top-build-dir)/Documentation/$(outdir)/%-big-page.$(ISOLANG).html)
23 DEEP_HTML_FILES := $(NOT_TOPDIR_HTML_MANUALS:%=$(top-build-dir)/Documentation/$(outdir)/%/index.$(ISOLANG).html)
24 PDF_FILES := $(TELY_FILES:%.tely=$(top-build-dir)/Documentation/$(outdir)/%.$(ISOLANG).pdf)
25
26 ITELY_FILES := $(call src-wildcard,*.itely)
27 ITEXI_FILES := $(call src-wildcard,*.itexi)
28
29 DOCUMENTATION_INCLUDES += \
30   -I $(top-build-dir)/Documentation/$(outdir) \
31   -I $(top-build-dir)/Documentation/snippets/out \
32   -I $(top-src-dir)/Documentation/$(ISOLANG)/included \
33   -I $(top-src-dir)/Documentation/included \
34   -I $(top-src-dir)/Documentation \
35   -I $(top-src-dir)/input/regression
36
37 MAKEINFO_FLAGS += --enable-encoding $(DOCUMENTATION_INCLUDES)
38 MAKEINFO = LANG= $(MAKEINFO_PROGRAM) $(MAKEINFO_FLAGS)
39
40 WEB_MANUALS=web
41
42 ###########
43 ifneq ($(ISOLANG),)
44 TEXI2HTML_LANG_INIT = --init-file=$(top-src-dir)/Documentation/lilypond-texi2html-lang.init
45 TEXI2HTML_LANG = --document-language=$(ISOLANG)
46 endif
47
48 $(XREF_MAPS_DIR)/web.$(ISOLANG).xref-map:\
49         XREF_MAP_FLAGS += --split=node
50
51 TEXI2HTML_INIT = --init-file=$(top-src-dir)/Documentation/lilypond-texi2html.init
52
53 TEXI2HTML_SPLIT = --prefix=index --split=section
54
55 TEXI2HTML_INCLUDES += --I=. --I=$(src-dir) --I=$(outdir) $(DOCUMENTATION_INCLUDES) --I=$(XREF_MAPS_DIR)
56 # To overwrite texi2html default i18n messages with the LilyPond init file,
57 # delete TEXI2HTML_INIT that exists before TEXI2HTML_LANG.
58 TEXI2HTML_FLAGS := $(filter-out $(TEXI2HTML_INIT),$(TEXI2HTML_FLAGS))
59 # Instead, add languages minimum initialization before TEXI2HTML_LANG.
60 TEXI2HTML_FLAGS := $(subst $(TEXI2HTML_LANG),$(TEXI2HTML_LANG_INIT) $(TEXI2HTML_LANG),$(TEXI2HTML_FLAGS))
61 TEXI2HTML_FLAGS += $(TEXI2HTML_INCLUDES) $(TEXI2HTML_LANG_INIT) $(TEXI2HTML_LANG) $(TEXI2HTML_INIT)
62 TEXI2HTML = TOP_SRC_DIR=$(top-src-dir) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
63 ###########
64
65 TEXI2PDF_FLAGS +=  $(DOCUMENTATION_INCLUDES)
66 TEXI2PDF_FLAGS += -I $(LYS_OUTPUT_DIR)
67
68 DOCUMENTATION_LOCALE_TARGET = $(outdir)/doc-po
69 TRANSLATION_LILY_IMAGES = $(outdir)/translation-lily-images