makefile: fix RACKET_FOR_BOOTFILES

This commit is contained in:
Matthew Flatt 2021-03-24 12:19:17 -06:00
parent 4328b3acdb
commit 4704dc6962
3 changed files with 9 additions and 3 deletions

View File

@ -233,7 +233,7 @@ downloaded from a separate Git repository by `make`. If you have Racket
v7.1 or later, then you can choose instead to bootstrap using that
Racket implementation with
  `make cs RACKET=racket`
  `make cs RACKET_FOR_BOOTFILES=racket`
The `make bc` target (or `make bc-as-is` for a rebuild, or `nmake
win-bc` on Windows with Visual Studio) builds an older variant of

View File

@ -211,7 +211,7 @@ downloaded from a separate Git repository by @exec{make}. If you have
Racket v7.1 or later, then you can choose instead to bootstrap using
that Racket implementation with
@commandline{make cs RACKET=racket}
@commandline{make cs RACKET_FOR_BOOTFILES=racket}
The @exec{make bc} target (or @exec{make bc-as-is} for a rebuild, or
@exec{nmake win-bc} on Windows with Visual Studio) builds an older

View File

@ -50,6 +50,10 @@ DEFAULT_RACKET = ./raw_racketcs
RACKET = @RACKET@
BOOTFILE_RACKET = @BOOTFILE_RACKET@
# Potentially supplied by makefile that calls this one, and
# overrides `BOOTFILE_RACKET` if non-empty:
RACKET_FOR_BOOTFILES =
CS_INSTALLED = @CS_INSTALLED@
NOOP = :
@ -124,7 +128,9 @@ bounce:
scheme:
mkdir -p $(SCHEME_WORKAREA)
if [ "$(BOOTFILE_RACKET)" != "$(DEFAULT_RACKET)" ] ; \
if [ "$(RACKET_FOR_BOOTFILES)" != "" ] ; \
then $(MAKE) scheme-via-rktboot BOOTFILE_RACKET="$(RACKET_FOR_BOOTFILES)" SETUP_BOOT_MODE=--chain ; \
elif [ "$(BOOTFILE_RACKET)" != "$(DEFAULT_RACKET)" ] ; \
then $(MAKE) scheme-via-rktboot BOOTFILE_RACKET="$(BOOTFILE_RACKET)" ; \
else $(MAKE) scheme-via-pb ; fi