]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-vars.make
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into kainhofer
[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 export PYTHONPATH:=$(top-build-dir)/python/$(outconfbase):$(PYTHONPATH)
19
20 the-script-dir=$(wildcard $(script-dir))
21
22 ABC2LY = $(script-dir)/abc2ly.py
23 MUSICXML2LY = $(script-dir)/musicxml2ly.py
24 CONVERT_LY = $(script-dir)/convert-ly.py
25 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
26
27 ## ugh : fix me, input/new/pitches
28 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)/new/pitches
29
30 ## override from cmd line to speed up. 
31 ANTI_ALIAS_FACTOR=2
32 LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),)
33 LILYPOND_BOOK_LILYPOND_FLAGS=-dbackend=eps --formats=ps,png,pdf $(LILYPOND_JOBS) -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/input/manual -dcheck-internal-types -ddump-signatures -danti-alias-factor=$(ANTI_ALIAS_FACTOR)
34 LILYPOND_BOOK_VERBOSE = --verbose
35 LILYPOND_BOOK_FLAGS = --process="$(LILYPOND_BINARY) $(LILYPOND_BOOK_LILYPOND_FLAGS)" $(LILYPOND_BOOK_VERBOSE)
36 TEXINPUTS=$(top-src-dir)/tex/::
37 export TEXINPUTS
38
39 #texi-html for www only:
40 LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html)
41 LY2DVI = $(LILYPOND_BINARY)
42 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py
43