X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=make%2Flilypond-vars.make;h=99119be37a0d8f36563d036713effe2a407edf2b;hb=3ab890f3eabb319e1915e3bd17efca91d830184d;hp=3fe88a4228f3db54a5ca2711cfb083f71fa1bdb1;hpb=74c23ea22981a5cb38bcce50bd87c8dc3e642fc0;p=lilypond.git diff --git a/make/lilypond-vars.make b/make/lilypond-vars.make index 3fe88a4228..99119be37a 100644 --- a/make/lilypond-vars.make +++ b/make/lilypond-vars.make @@ -1,12 +1,18 @@ ## ## settings to run LilyPond ifeq ($(LILYPOND_EXTERNAL_BINARY),) + # environment settings. export PATH:=$(top-build-dir)/lily/$(outconfbase):$(top-build-dir)/buildscripts/$(outconfbase):$(top-build-dir)/scripts/$(outconfbase):$(PATH): -export LILYPONDPREFIX:=$(build_lilypond_datadir)/$(TOPLEVEL_VERSION) -export DVIPSHEADERS:=$(top-build-dir)/mf/out:: +export LILYPOND_BINARY=$(top-build-dir)/$(outconfbase)/bin/lilypond else -export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH) + +## better not take the binaries from a precompiled bundle, as they +## rely on env vars for relocation. +## + +#export PATH:=$(dir $(LILYPOND_EXTERNAL_BINARY)):$(PATH) +export LILYPOND_BINARY=$(LILYPOND_EXTERNAL_BINARY) endif export PYTHONPATH:=$(top-build-dir)/python/$(outconfbase):$(PYTHONPATH) @@ -15,14 +21,22 @@ the-script-dir=$(wildcard $(script-dir)) ABC2LY = $(script-dir)/abc2ly.py CONVERT_LY = $(script-dir)/convert-ly.py -LILYPOND = $(top-build-dir)/lily/$(outconfbase)/lilypond LILYPOND_BOOK = $(script-dir)/lilypond-book.py -LILYPOND_BOOK_INCLUDES = -I $(src-dir)/ -I $(outdir) -I$(input-dir) -I $(input-dir)/regression/ -I $(input-dir)/test/ -I $(input-dir)/tutorial/ -I $(top-build-dir)/mf/$(outconfbase)/ -I $(top-build-dir)/mf/out/ -LILYPOND_BOOK_FLAGS = --process="$(LILYPOND) --backend=eps --formats=ps,png --header=texidoc -I $(top-src-dir)/input/test -dinternal-type-checking -danti-alias-factor=2 -dgs-font-load" +## ugh : fix me, input/new/pitch +LILYPOND_BOOK_INCLUDES = -I $(src-dir)/ -I $(outdir) -I $(input-dir) -I $(input-dir)/regression/ -I $(input-dir)/manual/ -I $(input-dir)/tutorial/ -I $(top-build-dir)/mf/$(outconfbase)/ -I $(top-build-dir)/mf/out/ -I $(input-dir)/new/pitch + +## override from cmd line to speed up. +ANTI_ALIAS_FACTOR=2 +LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),) +LILYPOND_BOOK_LILYPOND_FLAGS=-dbackend=eps --formats=ps,png,pdf $(LILYPOND_JOBS) -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/input/manual -dcheck-internal-types -ddump-signatures -danti-alias-factor=$(ANTI_ALIAS_FACTOR) +LILYPOND_BOOK_VERBOSE = --verbose +LILYPOND_BOOK_FLAGS = --process="$(LILYPOND_BINARY) $(LILYPOND_BOOK_LILYPOND_FLAGS)" $(LILYPOND_BOOK_VERBOSE) +TEXINPUTS=$(top-src-dir)/tex/:: +export TEXINPUTS #texi-html for www only: LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html) -LY2DVI = $(LILYPOND) +LY2DVI = $(LILYPOND_BINARY) LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py