From 3cd7af22819b8374310156db6c4ae8baf878715c Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 6 Nov 2000 21:42:47 +0100 Subject: [PATCH] patch::: 1.3.104.jcn1 1.3.104.jcn1 ============ * Made some --scrdir build fixes. --- CHANGES | 5 +++++ Documentation/user/GNUmakefile | 8 ++++++-- VERSION | 2 +- make/generic-vars.make | 21 +++++++++++++-------- make/mudela-rules.make | 8 +++++--- make/mutopia-rules.make | 12 ++++++------ make/mutopia-targets.make | 4 ++-- make/toplevel.make.in | 6 +++--- mf/GNUmakefile | 4 ++-- scm/engraver-documentation-lib.scm | 8 +++++--- scm/generate-documentation.scm | 9 +++++++++ scm/translator-description.scm | 18 ++++++++++++++++++ stepmake/stepmake/generic-vars.make | 27 +++++++++++++++------------ 13 files changed, 90 insertions(+), 42 deletions(-) diff --git a/CHANGES b/CHANGES index 303cca1570..89a2775ee0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +1.3.104.jcn1 +============ + +* Made some --scrdir build fixes. + 1.3.103.jcn5 ============ diff --git a/Documentation/user/GNUmakefile b/Documentation/user/GNUmakefile index 0cee86ef33..5a8db6f264 100644 --- a/Documentation/user/GNUmakefile +++ b/Documentation/user/GNUmakefile @@ -51,6 +51,10 @@ localclean: backdoc-WWW: $(outdir)/lilypond-internals.html #ugh. lily/OUT/lilypond hardcoded. +# when cross-compiling, we don't have lilypond $(outdir)/lilypond-internals.texi: - (cd $(outdir); $(topdir)/lily/out/lilypond ../$(srcdir)/../ly/generate-documentation) - + if [ -e $(depth)/$(builddir)/lily/out/lilypond ]; then \ + cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation; \ + else \ + touch $@; \ + fi diff --git a/VERSION b/VERSION index 3e35f9dbd6..b4d58e1246 100644 --- a/VERSION +++ b/VERSION @@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=3 PATCH_LEVEL=104 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=jcn1 # use the above to send patches: MY_PATCH_LEVEL is always empty for a # released version. diff --git a/make/generic-vars.make b/make/generic-vars.make index 95d6e82f74..3ad2d595d8 100644 --- a/make/generic-vars.make +++ b/make/generic-vars.make @@ -8,16 +8,21 @@ # you do make dist # -buildscripts = $(depth)/buildscripts +# using src-depth iso depth is only necessary for broken rules that do +# cd $(outdir) && foo $(depth) ... +buildscript-dir = $(src-depth)/buildscripts +script-dir = $(src-depth)/scripts +input-dir = $(src-depth)/input -flower-dir = $(depth)/flower -lib-dir = $(depth)/lib -lily-dir = $(depth)/lily -mi2mu-dir = $(depth)/mi2mu -make-dir = $(depth)/make -include-lib = $(depth)/lib/include -include-flower = $(depth)/flower/include + +flower-dir = $(src-depth)/flower +lib-dir = $(src-depth)/lib +lily-dir = $(src-depth)/lily +mi2mu-dir = $(src-depth)/mi2mu +make-dir = $(src-depth)/make +include-lib = $(src-depth)/lib/include +include-flower = $(src-depth)/flower/include diff --git a/make/mudela-rules.make b/make/mudela-rules.make index 9e0e47e6ce..28fd1893a7 100644 --- a/make/mudela-rules.make +++ b/make/mudela-rules.make @@ -5,17 +5,19 @@ SUBST_TEXI_DEPS=sed 's! \.\./! !g' < $(basename $@).dep > $(outdir)/temp.dep ; mv $(outdir)/temp.dep $(basename $@).dep $(outdir)/%.latex: %.doc - cd $(outdir);LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --dep-prefix=$(outdir)/ ../$< + LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ $< $(SUBST_TEXI_DEPS) +# don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir. +# it is not, for --scrdir builds $(outdir)/%.texi: %.tely - cd $(outdir); LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi ../$< + LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi $< $(SUBST_TEXI_DEPS) # nexi: no-lily texi # for plain info doco: don't run lily $(outdir)/%.nexi: %.tely - cd $(outdir); LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(depth)/../scripts/mudela-book.py --no-lily -I .. -I $(depth)/../input/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi ../$< + LILYPONDPREFIX=$(LILYPONDPREFIX)/.. $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) --no-lily -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi $< mv $(@D)/$(*F).texi $@ $(SUBST_TEXI_DEPS) diff --git a/make/mutopia-rules.make b/make/mutopia-rules.make index b741023eaf..509de0118a 100644 --- a/make/mutopia-rules.make +++ b/make/mutopia-rules.make @@ -1,12 +1,12 @@ $(outdir)/%.gif: $(outdir)/%.ps - sh $(buildscripts)/ps-to-gifs.sh $< + sh $(buildscript-dir)/ps-to-gifs.sh $< -mv $(name-stem)-page*.gif $(outdir)/ touch $@ $(outdir)/%.png: $(outdir)/%.ps - sh $(buildscripts)/ps-to-pngs.sh $< + sh $(buildscript-dir)/ps-to-pngs.sh $< -mv $(name-stem)-page*.png $(outdir)/ touch $@ @@ -21,10 +21,10 @@ $(outdir)/%.ly.txt: %.abc ln -f $< $@ $(outdir)/%.ly: %.abc - $(PYTHON) $(depth)/scripts/abc2ly.py -o $@ $< + $(PYTHON) $(script-dir)/abc2ly.py -o $@ $< $(outdir)/%.dvi: $(outdir)/%.ly - $(PYTHON) $(depth)/scripts/ly2dvi.py -o $(outdir) $< + $(PYTHON) $(script-dir)/ly2dvi.py -o $(outdir) $< -mv $(basename $(