]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-vars.make
* Documentation/user/music-glossary.tely: add @omf tags
[lilypond.git] / make / lilypond-vars.make
1 ##
2 ## settings to run LilyPond
3
4
5 export PATH:=$(builddir)/lily/$(outconfbase):$(builddir)/buildscripts/$(outconfbase):$(PATH)
6
7 # LilyPond is often run from within $(outdir), making a relative
8 # PREFIX incorrect.
9 export LILYPONDPREFIX:=$(build_lilypond_datadir)
10
11 export PYTHONPATH:=$(builddir)/python/$(outdir):$(PYTHONPATH)
12
13 ## arg, TEXINPUTS, TFMFONTS, MFINPUTS may still override and thus break this
14 export TEXMF:={$(LILYPONDPREFIX),$(shell kpsexpand \$$TEXMF)}
15
16 export MFINPUTS:=
17 export TEXINPUTS:=
18 export TFMFONTS:=
19 export extra_mem_top=1000000
20 export extra_mem_bottom=1000000
21 export pool_size=500000
22
23
24 ifdef DEB_BUILD
25 export PKFONTS := $(topdir)/mf/out
26 export MT_DESTROOT := $(topdir)/mf/out
27 export DVIPSMAKEPK := mktexpk --destdir $(topdir)/mf/out
28 endif
29
30
31 # guile load path?
32
33 the-script-dir=$(wildcard $(script-dir))
34
35 ifneq ($(the-script-dir),)
36
37 ### some versions apparently choke on $(message)
38 ### $(message running from source tree stepmake)
39
40 ABC2LY = $(script-dir)/abc2ly.py
41 CONVERT_LY = $(script-dir)/convert-ly.py
42 LILYPOND = $(builddir)/lily/$(outconfbase)/lilypond
43 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
44 LILYPOND_BOOK_INCLUDES = -I $(pwd) -I $(outdir) -I$(input-dir) -I $(input-dir)/tricks/ -I $(input-dir)/regression/ -I $(input-dir)/test/ -I $(input-dir)/tutorial/ -I $(builddir)/mf/$(outconfbase)/  -I $(builddir)/mf/out/
45 LILYPOND_BOOK_FORMAT = texi
46 LY2DVI = $(script-dir)/ly2dvi.py
47 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py
48
49 else
50
51 ### some versions apparently choke on $(message)
52 ### $(message running from installed stepmake)
53
54 ABC2LY = $(shell $(SHELL) -c 'type -p abc2ly')
55 CONVERT_LY = $(shell $(SHELL) -c 'type -p convert-ly')
56 LILYPOND = $(shell $(SHELL) -c 'type -p lilypond')
57 LILYPOND_BOOK = $(shell $(SHELL) -c 'type -p lilypond-book')
58 LILYPOND_BOOK_INCLUDES = -I. -I.. -I$(outdir)
59 LILYPOND_BOOK_FORMAT = texi
60 LY2DVI = $(shell $(SHELL) -c 'type -p ly2dvi')
61 LYS_TO_TELY = $(shell $(SHELL) -c 'type -p lys-to-tely')
62
63 endif
64