]> git.donarmstrong.com Git - lilypond.git/blob - make/doc-i18n-root-vars.make
Clean fonts and docs makefiles, trying to fix 'make -j' race conditions
[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) $(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-src-dir)/Documentation/$(ISOLANG)/included \
31   -I $(top-src-dir)/Documentation \
32   -I $(top-build-dir)/Documentation/$(outdir)
33
34 LILYPOND_BOOK_INCLUDES += $(DOCUMENTATION_INCLUDES)
35 MAKEINFO_FLAGS += --enable-encoding $(DOCUMENTATION_INCLUDES)
36 MAKEINFO = LANG= $(MAKEINFO_PROGRAM) $(MAKEINFO_FLAGS)
37
38 WEB_MANUALS=web
39
40 ###########
41 ifneq ($(ISOLANG),)
42 TEXI2HTML_LANG = --lang=$(ISOLANG)
43 endif
44
45 $(XREF_MAPS_DIR)/web.$(ISOLANG).xref-map:\
46         XREF_MAP_FLAGS += --split=node
47
48 TEXI2HTML_INIT = --init-file=$(top-src-dir)/Documentation/lilypond-texi2html.init
49
50 TEXI2HTML_SPLIT = --prefix=index --split=section
51
52 TEXI2HTML_INCLUDES += --I=. --I=$(src-dir) --I=$(outdir) $(DOCUMENTATION_INCLUDES) --I=$(XREF_MAPS_DIR)
53 TEXI2HTML_FLAGS += $(TEXI2HTML_INCLUDES) $(TEXI2HTML_LANG) $(TEXI2HTML_INIT) 
54 TEXI2HTML = TOP_SRC_DIR=$(top-src-dir) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
55 ###########
56
57 TEXI2PDF_FLAGS +=  $(DOCUMENTATION_INCLUDES)
58 TEXI2PDF_FLAGS += -I $(LYS_OUTPUT_DIR)
59
60 DOCUMENTATION_LOCALE_TARGET = $(outdir)/doc-po
61 TRANSLATION_LILY_IMAGES = $(outdir)/translation-lily-images