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