summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-26 18:44:33 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-26 18:44:33 +0000
commit75a1ca828c8d6edceda4301ac998f65d17ac7d6e (patch)
treed4287ceda8e38f5d3b651911fd06c46ba65dcbe7 /Makefile.in
parent837a59c1817e3efc80eda5d6d30c414e6b938cae (diff)
downloadgcc-75a1ca828c8d6edceda4301ac998f65d17ac7d6e.tar.gz
* Makefile.in (bootstrap-lean): Combined with `normal' bootstrap
targets using "$@" to provide support for similar but not identical targets without having to duplicate code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16186 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in31
1 files changed, 12 insertions, 19 deletions
diff --git a/Makefile.in b/Makefile.in
index b7f9c27be79..d4d99477dc6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1283,8 +1283,8 @@ all-gcc:
# In theory, on an SMP all those dependencies can be resolved
# in parallel.
#
-.PHONY: bootstrap bootstrap2 bootstrap3
-bootstrap bootstrap2 bootstrap3: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
+.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap3 bootstrap4
+bootstrap bootstrap-lean bootstrap2 bootstrap3 bootstrap4: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
@r=`pwd`; export r; \
s=`cd $(srcdir); pwd`; export s; \
$(SET_LIB_PATH) \
@@ -1292,24 +1292,17 @@ bootstrap bootstrap2 bootstrap3: all-texinfo all-bison all-byacc all-binutils al
cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
@r=`pwd`; export r; \
s=`cd $(srcdir); pwd`; export s; \
+ case "$@" in \
+ *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
+ compare=compare3 ;; \
+ *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
+ compare=compare-lean ;; \
+ * ) msg="Comparing stage2 and stage3 of the compiler"; \
+ compare=compare ;; \
+ esac; \
$(SET_LIB_PATH) \
- echo "Comparing stage2 and stage3 of the compiler"; \
- cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) compare
- @echo "Building runtime libraries"; \
- $(MAKE) all
-
-.PHONY: bootstrap-lean
-bootstrap-lean: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
- @r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- echo "Bootstrapping the compiler"; \
- cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
- @r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- echo "Comparing stage2 and stage3 of the compiler"; \
- cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) compare-lean
+ echo "$$msg"; \
+ cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
@echo "Building runtime libraries"; \
$(MAKE) all