aboutsummaryrefslogtreecommitdiff
path: root/src/boot/Makefile.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2007-08-17 07:20:23 +0000
committerdos-reis <gdr@axiomatics.org>2007-08-17 07:20:23 +0000
commit88d049946f421fb111a726fc3a954d1bf5af9907 (patch)
tree128454b7193ada09827c1333bff43990100449b7 /src/boot/Makefile.pamphlet
parentf7c894bf2f4e5fa91cd1f15e94569d557d1942a8 (diff)
downloadopen-axiom-88d049946f421fb111a726fc3a954d1bf5af9907.tar.gz
src/
2007-08-17 Gabriel Dos Reis <gdr@cs.tamu.edu> * Makefile.pamphlet (all-lisp): Don't make $(axiom_build_bindir) here. Pass target tp $(MAKE). (all-boot): Likewise. (all-lib): Don't make $(OUT) here. Pass target to $(MAKE). * Makefile.in: Regenerate. src/boot/ 2007-08-17 Gabriel Dos Reis <gdr@cs.tamu.edu> * Makefile.pamphlet (BOOTSYS_FOR_TARGET): Remove. (stamp): Update prerequisite. ($(axiom_build_bindir)/bootsys$(EXEEXT)): Rename from $(BOOTSYS_FOR_TARGET). (%/.started): Rename from mk-statge0-dir. Tidy. (stage0/%.clisp): Update prerequisite. (%/initial-env.$(FASLEXT)): Likewise. (mk-stage1-dir): Remove. (mk-stage2-dir): Likewise. (mostlyclean-local): Update. * Makefile.in: Regenerate. src/lib/ 2007-08-17 Gabriel Dos Reis <gdr@cs.tamu.edu> * Makefile.pamphlet ($(axiom_target_libdir)/libspad.la): Remove prerequisite mk-target-libdir. (mk-target-libdir): Remove. * Makefile.in: Regenerate. src/lisp/ 2007-08-17 Gabriel Dos Reis <gdr@cs.tamu.edu> * Makefile.pamphlet ($(OUT)/lisp$(EXEEXT)): Create $(OUT) directory before installing lisp executable. * Makefile.in: Regenerate.
Diffstat (limited to 'src/boot/Makefile.pamphlet')
-rw-r--r--src/boot/Makefile.pamphlet39
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>>