]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-vars.make
Docs: reorganize documentation directory structure
[lilypond.git] / make / lilypond-vars.make
1 ##
2 ## settings to run LilyPond
3 ifeq ($(LILYPOND_EXTERNAL_BINARY),)
4
5 # environment settings.
6 export PATH:=$(top-build-dir)/lily/$(outconfbase):$(buildscript-dir):$(top-build-dir)/scripts/$(outconfbase):$(PATH):
7 export LILYPOND_BINARY=$(top-build-dir)/$(outconfbase)/bin/lilypond
8 else
9
10 ## better not take the binaries  from a precompiled bundle, as they
11 ## rely on env vars for relocation.
12 ##
13
14 #export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH)
15 export LILYPOND_BINARY=$(LILYPOND_EXTERNAL_BINARY)
16 endif
17
18 LANGS=$(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
19
20 export PYTHONPATH:=$(top-build-dir)/python/$(outconfbase):$(PYTHONPATH)
21
22 the-script-dir=$(wildcard $(script-dir))
23
24 ABC2LY = $(script-dir)/abc2ly.py
25 MUSICXML2LY = $(script-dir)/musicxml2ly.py
26 CONVERT_LY = $(script-dir)/convert-ly.py
27 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
28
29 LILYPOND_BOOK_INCLUDES = -I $(src-dir)/ -I $(outdir) -I $(input-dir)    \
30  -I $(input-dir)/regression/ -I $(input-dir)/manual/ \
31  -I $(input-dir)/tutorial/ -I $(top-build-dir)/mf/$(outconfbase)/       \
32  -I $(top-build-dir)/mf/out/ -I $(top-src-dir)/input/manual \
33  -I $(top-src-dir)/Documentation -I $(top-src-dir)/Documentation/snippets
34
35 ## override from cmd line to speed up. 
36 ANTI_ALIAS_FACTOR=2
37 LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),)
38 LANG_TEXIDOC_FLAGS:=$(foreach lang,$(LANGS),--header=texidoc$(lang))
39 LANG_DOCTITLE_FLAGS:=$(foreach lang,$(LANGS),--header=doctitle$(lang))
40
41 LILYPOND_BOOK_LILYPOND_FLAGS=-dbackend=eps \
42 --formats=ps,png,pdf \
43 $(LILYPOND_JOBS) \
44 -dinclude-eps-fonts \
45 -dgs-load-fonts \
46 --header=doctitle \
47 $(LANG_DOCTITLE_FLAGS) \
48 --header=texidoc \
49 $(LANG_TEXIDOC_FLAGS) \
50 -dcheck-internal-types \
51 -ddump-signatures \
52 -danti-alias-factor=$(ANTI_ALIAS_FACTOR)
53
54 ifdef QUIET_BUILD
55 LILYPOND_BOOK_VERBOSE =
56 else
57 LILYPOND_BOOK_VERBOSE = --verbose
58 endif
59
60 LILYPOND_BOOK_INFO_IMAGES_DIR = $(if $(INFO_IMAGES_DIR),--info-images-dir=$(INFO_IMAGES_DIR),)
61 LILYPOND_BOOK_FLAGS = $(LILYPOND_BOOK_VERBOSE) $(LILYPOND_BOOK_INFO_IMAGES_DIR)
62
63 ifeq ($(out),)
64 LILYPOND_BOOK_PROCESS = true
65 LILYPOND_BOOK_FLAGS += --skip-lily-check
66 else
67 LILYPOND_BOOK_PROCESS = $(LILYPOND_BINARY)
68 endif
69 ifeq ($(out),test)
70 LILYPOND_BOOK_FLAGS += --skip-png-check
71 endif
72
73 TEXINPUTS=$(top-src-dir)/tex/::
74 export TEXINPUTS
75
76 export LYDOC_LOCALEDIR:= $(top-build-dir)/Documentation/po/out-www
77
78 #texi-html for www only:
79 LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html)
80 LY2DVI = $(LILYPOND_BINARY)
81 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely
82