]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-vars.make
patch::: 1.5.27.jcn1
[lilypond.git] / make / lilypond-vars.make
1 ##
2 ## settings to run LilyPond
3
4
5 export PATH:=$(topdir)/lily/out:$(topdir)/buildscripts/out:$(PATH)
6
7 export MFINPUTS:=$(topdir)/mf/:$(MFINPUTS)::
8 export TEXINPUTS:=$(topdir)/mf/out/:$(topdir)/tex/:$(topdir)/ps/:$(TEXINPUTS):$(pwd)::
9 export LILYINCLUDE:=$(topdir)/ps:$(topdir)/scm:$(topdir)/ly:$(topdir)/mf/out::$(TEX_TFMDIR):$(LILYINCLUDE)
10 export TFMFONTS:=$(topdir)/mf/out:
11 export extra_mem_top=1000000
12 export extra_mem_bottom=1000000
13 export pool_size=250000
14
15
16 ifdef DEB_BUILD
17 export PKFONTS := $(topdir)/mf/out
18 export MT_DESTROOT := $(topdir)/mf/out
19 export DVIPSMAKEPK := mktexpk --destdir $(topdir)/mf/out
20 endif
21
22 # don't change to "depth". It makes the GUILE barf.
23 #
24 # LilyPond is often run from within $(outdir), making a relative
25 # PREFIX incorrect.
26 export LILYPONDPREFIX:=$(shell cd $(depth)/ ; pwd)
27
28 export PYTHONPATH:=$(topdir)/python:$(PYTHONPATH)
29
30 # guile load path?
31
32 the-script-dir=$(wildcard $(script-dir))
33
34 ifneq ($(the-script-dir),)
35
36 ### some versions apparently choke on $(message)
37 ### $(message running from source tree stepmake)
38
39 ABC2LY = $(script-dir)/abc2ly.py
40 CONVERT_LY = $(script-dir)/convert-ly.py
41 LILYPOND = $(depth)/$(builddir)/lily/$(outconfbase)/lilypond
42 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
43 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/
44 LY2DVI = $(script-dir)/ly2dvi.py
45 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py
46 PS_TO_GIFS = $(buildscript-dir)/ps-to-gifs.sh
47 PS_TO_PNGS = $(buildscript-dir)/ps-to-pngs.sh
48
49 else
50 ### some versions apparently choke on $(message)
51 ### $(message running from installed stepmake)
52
53 ABC2LY = $(shell $(SHELL) -c 'type -p abc2ly')
54 CONVERT_LY = $(shell $(SHELL) -c 'type -p convert-ly')
55 LILYPOND = $(shell $(SHELL) -c 'type -p lilypond')
56 LILYPOND_BOOK = $(shell $(SHELL) -c 'type -p lilypond-book')
57 LILYPOND_BOOK_INCLUDES = -I. -I.. -I$(outdir)
58 LY2DVI = $(shell $(SHELL) -c 'type -p ly2dvi')
59 LYS_TO_TELY = $(shell $(SHELL) -c 'type -p lys-to-tely')
60 PS_TO_GIFS = $(shell $(SHELL) -c 'type -p ps-to-gifs')
61 PS_TO_PNGS = $(shell $(SHELL) -c 'type -p ps-to-pngs')
62
63 endif
64