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