diff options
Diffstat (limited to 'src/boot/Makefile.pamphlet')
-rw-r--r-- | src/boot/Makefile.pamphlet | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/src/boot/Makefile.pamphlet b/src/boot/Makefile.pamphlet index f53ee379..531a4e6f 100644 --- a/src/boot/Makefile.pamphlet +++ b/src/boot/Makefile.pamphlet @@ -1138,14 +1138,6 @@ AXIOM_LOCAL_LISP_sources = initial-env.lisp AXIOM_LOCAL_LISP = ../lisp/base-lisp$(EXEEXT) @ -\paragraph{[[BOOTSYS_FOR_TARGET]].} -The [[$(BOOTSYS_FOR_TARGET)]] image is the final Boot translator image, -produced after several bootstrap stages. That is the result of -running the \Tool{Make} target [[all-boot]]. -<<environment>>= -BOOTSYS_FOR_TARGET = $(axiom_target_bindir)/bootsys$(EXEEXT) -@ - \section{Proclaim optimization} \label{sec:proclaim} @@ -1403,9 +1395,10 @@ stage0/bootsys$(EXEEXT): $(stage0_boot_objects) $(stage0_boot_objects) -.PHONY: mk-stage0-dir -mk-stage0-dir: - @[ -d stage0 ] || $(mkinstalldirs) stage0 +.PRECIOUS: %/.started +%/.started: + $(mkinstalldirs) $* + $(STAMP) $@ $(stage0_boot_objects): $(AXIOM_LOCAL_LISP) @@ -1413,11 +1406,10 @@ stage0/%.$(FASLEXT): stage0/%.clisp $(AXIOM_LOCAL_LISP) -- --compile \ --load-directory=stage0 --output=$@ $< - -stage0/%.clisp: $(srcdir)/%.boot.pamphlet mk-stage0-dir +stage0/%.clisp: $(srcdir)/%.boot.pamphlet stage0/.started $(axiom_build_document) --tangle=$*.clisp --output=$@ $< -%/initial-env.$(FASLEXT): initial-env.lisp mk-%-dir +%/initial-env.$(FASLEXT): initial-env.lisp %/.started $(AXIOM_LOCAL_LISP) -- --compile --output=$@ $< @ @@ -1441,12 +1433,8 @@ stage1/%.$(FASLEXT): stage1/%.clisp $(AXIOM_LOCAL_LISP) -- --compile \ --load-directory=stage1 $< -stage1/%.clisp: %.boot stage0/stamp mk-stage1-dir +stage1/%.clisp: %.boot stage0/stamp stage1/.started stage0/bootsys -- --translate --output=$@ $< - -.PHONY: mk-stage1-dir -mk-stage1-dir: - @[ -d stage1 ] || $(mkinstalldirs) stage1 @ \subsubsection{Stage 2} @@ -1469,12 +1457,8 @@ stage2/%.$(FASLEXT): stage2/%.clisp $(AXIOM_LOCAL_LISP) -- --compile \ --load-directory=stage2 $< -stage2/%.clisp: %.boot stage1/stamp mk-stage2-dir +stage2/%.clisp: %.boot stage1/stamp stage2/.started stage1/bootsys -- --translate --output=$@ $< - -.PHONY: mk-stage2-dir -mk-stage2-dir: - @[ -d stage2 ] || $(mkinstalldirs) stage2 @ <<bootstrap>>= @@ -1521,7 +1505,7 @@ BOOT_TO_LISP = \ <<cleanup>>= mostlyclean-local: @rm -f $(AXIOM_LOCAL_LISP) - @rm -f $(BOOTSYS_FOR_TARGET) + @rm -f $(axiom_build_bindir)/bootsys$(EXEEXT) @rm -rf prev-stage @rm -rf stage0 stage1 stage2 @rm -f *.data *.fn @@ -1614,11 +1598,12 @@ all: all-ax all-boot all-ax all-boot: stamp -stamp: $(BOOTSYS_FOR_TARGET) +stamp: $(axiom_build_bindir)/bootsys$(EXEEXT) @rm -f stamp $(STAMP) $@ -$(BOOTSYS_FOR_TARGET): stage2/bootsys$(EXEEXT) +$(axiom_build_bindir)/bootsys$(EXEEXT): stage2/bootsys$(EXEEXT) + $(mkinstalldirs) $(axiom_build_bindir) $(INSTALL_PROGRAM) stage2/bootsys$(EXEEXT) $(axiom_build_bindir) <<bootstrap>> |