Doc: Add Neil's discussion on music properties to CG/Programming-work
[lilypond/mpolesky.git] / make / lilypond-vars.make
blobd1c7cd2fea46e8c9d86945286e91d339a645f0c1
1 ##
2 ## settings to run LilyPond
3 ifeq ($(LILYPOND_EXTERNAL_BINARY),)
5 # environment settings.
6 export PATH:=$(top-build-dir)/lily/$(outconfbase):$(buildscript-dir):$(top-build-dir)/scripts/$(outconfbase):$(PATH):
7 export LILYPOND_BINARY=$(top-build-dir)/$(outconfbase)/bin/lilypond
8 else
10 ## better not take the binaries from a precompiled bundle, as they
11 ## rely on env vars for relocation.
14 #export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH)
15 export LILYPOND_BINARY=$(LILYPOND_EXTERNAL_BINARY)
16 endif
18 LANGS=$(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
20 export PYTHONPATH:=$(top-build-dir)/python/$(outconfbase):$(PYTHONPATH)
22 the-script-dir=$(wildcard $(script-dir))
24 ABC2LY = $(script-dir)/abc2ly.py
25 MUSICXML2LY = $(script-dir)/musicxml2ly.py
26 CONVERT_LY = $(script-dir)/convert-ly.py
27 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
29 LILYPOND_BOOK_INCLUDES = -I $(src-dir)/ -I $(outdir) -I $(input-dir) \
30 -I $(top-src-dir)/Documentation -I $(top-src-dir)/Documentation/snippets \
31 -I $(input-dir)/regression/ -I $(top-src-dir)/Documentation/included/ \
32 -I $(top-build-dir)/mf/$(outconfbase)/ \
33 -I $(top-build-dir)/mf/out/ \
34 -I $(top-src-dir)/Documentation/pictures \
35 -I $(top-build-dir)/Documentation/pictures/$(outdir)
37 ## override from cmd line to speed up.
38 ANTI_ALIAS_FACTOR=2
39 LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),)
40 LANG_TEXIDOC_FLAGS:=$(foreach lang,$(LANGS),--header=texidoc$(lang))
41 LANG_DOCTITLE_FLAGS:=$(foreach lang,$(LANGS),--header=doctitle$(lang))
43 LILYPOND_BOOK_LILYPOND_FLAGS=-dbackend=eps \
44 --formats=ps,png,pdf \
45 $(LILYPOND_JOBS) \
46 -dinclude-eps-fonts \
47 -dgs-load-fonts \
48 --header=doctitle \
49 $(LANG_DOCTITLE_FLAGS) \
50 --header=texidoc \
51 $(LANG_TEXIDOC_FLAGS) \
52 -dcheck-internal-types \
53 -ddump-signatures \
54 -danti-alias-factor=$(ANTI_ALIAS_FACTOR)
56 ifdef QUIET_BUILD
57 LILYPOND_BOOK_VERBOSE =
58 else
59 LILYPOND_BOOK_VERBOSE = --verbose
60 endif
62 LILYPOND_BOOK_INFO_IMAGES_DIR = $(if $(INFO_IMAGES_DIR),--info-images-dir=$(INFO_IMAGES_DIR),)
63 LILYPOND_BOOK_FLAGS = $(LILYPOND_BOOK_VERBOSE) $(LILYPOND_BOOK_INFO_IMAGES_DIR)
65 ifeq ($(out),)
66 LILYPOND_BOOK_PROCESS = true
67 LILYPOND_BOOK_FLAGS += --skip-lily-check
68 else
69 LILYPOND_BOOK_PROCESS = $(LILYPOND_BINARY)
70 endif
71 ifeq ($(out),test)
72 LILYPOND_BOOK_FLAGS += --skip-png-check
73 endif
75 TEXINPUTS=$(top-src-dir)/tex/::
76 export TEXINPUTS
78 export LYDOC_LOCALEDIR:= $(top-build-dir)/Documentation/po/out-www
80 #texi-html for www only:
81 LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html)
82 LY2DVI = $(LILYPOND_BINARY)
83 LYS_TO_TELY = $(buildscript-dir)/lys-to-tely