diff options
author | Jan Nieuwenhuizen <janneke@gnu.org> | 2002-06-12 16:27:39 +0000 |
---|---|---|
committer | Jan Nieuwenhuizen <janneke@gnu.org> | 2002-06-12 16:27:39 +0000 |
commit | 432ff5225833fb6c385aa95acd0c55c0594708f8 (patch) | |
tree | b444987efc19c17f7ba46b80f607388946ec23d7 /make | |
parent | a57026bfb09e64d4c1e9efd844952da9348a9542 (diff) |
* stepmake/stepmake/generic-vars.make:
* make/lilypond-vars.make:
* GNUmakefile.in (builddir-setup): New setup for builddir run.
Fixes LilyPond run from builddir for --srcdir builds.
* Documentation/windows/GNUmakefile (OUT_PROFILES): Bugfix for
--srcdir build.
Diffstat (limited to 'make')
-rw-r--r-- | make/lilypond-vars.make | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/make/lilypond-vars.make b/make/lilypond-vars.make index 1bac1e0ef0..631b5dbd9a 100644 --- a/make/lilypond-vars.make +++ b/make/lilypond-vars.make @@ -2,8 +2,21 @@ ## settings to run LilyPond -export PATH:=$(topdir)/lily/out:$(topdir)/buildscripts/out:$(PATH) -export TEXMF:={$(topdir),$(shell kpsexpand \$$TEXMF)} +export PATH:=$(abs-builddir)/lily/$(outconfbase):$(abs-builddir)/buildscripts/$(outconfbase):$(PATH) + +# LilyPond is often run from within $(outdir), making a relative +# PREFIX incorrect. +export LILYPONDPREFIX:=$(shell cd $(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION); pwd) + +export PYTHONPATH:=$(topdir)/python:$(PYTHONPATH) + +## arg, TEXINPUTS, TFMFONTS, MFINPUTS may still override and thus break this +export TEXMF:={$(LILYPONDPREFIX),$(shell kpsexpand \$$TEXMF)} + +export MFINPUTS:= +export TEXINPUTS:= +export TFMFONTS:= + export extra_mem_top=1000000 export extra_mem_bottom=1000000 @@ -16,13 +29,6 @@ export MT_DESTROOT := $(topdir)/mf/out export DVIPSMAKEPK := mktexpk --destdir $(topdir)/mf/out endif -# don't change to "depth". It makes the GUILE barf. -# -# LilyPond is often run from within $(outdir), making a relative -# PREFIX incorrect. -export LILYPONDPREFIX:=$(shell cd $(depth)/ ; pwd) - -export PYTHONPATH:=$(topdir)/python:$(PYTHONPATH) # guile load path? @@ -35,9 +41,9 @@ ifneq ($(the-script-dir),) ABC2LY = $(script-dir)/abc2ly.py CONVERT_LY = $(script-dir)/convert-ly.py -LILYPOND = $(depth)/$(builddir)/lily/$(outconfbase)/lilypond +LILYPOND = $(abs-builddir)/lily/$(outconfbase)/lilypond LILYPOND_BOOK = $(script-dir)/lilypond-book.py -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 $(depth)/$(builddir)/mf/$(outconfbase)/ -I $(depth)/$(builddir)/mf/out/ +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/ LY2DVI = $(script-dir)/ly2dvi.py LYS_TO_TELY = $(buildscript-dir)/lys-to-tely.py PS_TO_GIFS = $(buildscript-dir)/ps-to-gifs.sh |