]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-vars.make
Merge branch 'master' of ssh+git://git.sv.gnu.org/srv/git/lilypond
[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):$(top-build-dir)/buildscripts/$(outconfbase):$(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) -I $(input-dir)/regression/ -I $(input-dir)/manual/ -I $(input-dir)/tutorial/ -I $(top-build-dir)/mf/$(outconfbase)/  -I $(top-build-dir)/mf/out/ -I $(input-dir)/lsr/
30
31 ## override from cmd line to speed up. 
32 ANTI_ALIAS_FACTOR=2
33 LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),)
34 LANG_TEXIDOC_FLAGS:=$(foreach lang,$(LANGS),--header=texidoc$(lang))
35
36 LILYPOND_BOOK_LILYPOND_FLAGS=-dbackend=eps \
37 --formats=ps,png,pdf \
38 $(LILYPOND_JOBS) \
39 -dinclude-eps-fonts \
40 -dgs-load-fonts \
41 --header=texidoc \
42 $(LANG_TEXIDOC_FLAGS) \
43 -I $(top-src-dir)/input/manual \
44 -dcheck-internal-types \
45 -ddump-signatures \
46 -danti-alias-factor=$(ANTI_ALIAS_FACTOR)
47
48 LILYPOND_BOOK_VERBOSE = --verbose
49 LILYPOND_BOOK_INFO_IMAGES_DIR = $(if $(INFO_IMAGES_DIR),--info-images-dir=$(INFO_IMAGES_DIR),)
50 LILYPOND_BOOK_FLAGS = $(LILYPOND_BOOK_VERBOSE) $(LILYPOND_BOOK_INFO_IMAGES_DIR)
51
52 ifeq ($(out),)
53 LILYPOND_BOOK_PROCESS = true
54 LILYPOND_BOOK_FLAGS += --skip-lily-check
55 else
56 LILYPOND_BOOK_PROCESS = $(LILYPOND_BINARY)
57 endif
58 ifeq ($(out),test)
59 LILYPOND_BOOK_FLAGS += --skip-png-check
60 endif
61
62 TEXINPUTS=$(top-src-dir)/tex/::
63 export TEXINPUTS
64
65 export LYDOC_LOCALEDIR:= $(top-build-dir)/Documentation/po/out-www
66
67 #texi-html for www only:
68 LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html)
69 LY2DVI = $(LILYPOND_BINARY)
70 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py
71