aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2005-06-23 07:31:23 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2005-06-23 07:31:23 +0000
commitc7870f5d15f5f2748d4c9c29d301796d2f7ab2e8 (patch)
tree0f8d957a740a50dcfea2cff94d3195228eef46ca /Makefile.tpl
parent09102896e847e9fb91d894d4735c92d690b195a8 (diff)
downloadgcc-c7870f5d15f5f2748d4c9c29d301796d2f7ab2e8.zip
gcc-c7870f5d15f5f2748d4c9c29d301796d2f7ab2e8.tar.gz
gcc-c7870f5d15f5f2748d4c9c29d301796d2f7ab2e8.tar.bz2
Makefile.def (stagefeedback): Come after profile.
2005-06-22 Paolo Bonzini <bonzini@gnu.org> * Makefile.def (stagefeedback): Come after profile. Define profiledbootstrap target. * Makefile.tpl (profiledbootstrap): Remove. (stageprofile-end): Zap stagefeedback. (stagefeedback-start): Copy all .gcda files, not only GCC's. * Makefile.in: Regenerate. From-SVN: r101263
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl32
1 files changed, 9 insertions, 23 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 365301d..de6ee68 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1445,32 +1445,18 @@ distclean-stage[+id+]::
[+ ENDFOR bootstrap-stage +]
-stagefeedback-start::
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- cd stageprofile-gcc && \
- { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../gcc/&",' | $(SHELL); } && \
- { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../gcc/&",' | $(SHELL); }
+stageprofile-end::
+ $(MAKE) distclean-stagefeedback
-# FIXME: Will not need to be conditional when toplevel bootstrap is the
-# only possibility, but now it conflicts with no-bootstrap rules
-@if gcc-bootstrap
-profiledbootstrap:
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(HOST_EXPORTS) \
- echo "Bootstrapping the compiler"; \
- $(MAKE) stageprofile-bubble distclean-stagefeedback
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
- echo "Building runtime libraries and training compiler"; \
- $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
+stagefeedback-start::
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(HOST_EXPORTS) \
- echo "Building feedback based compiler"; \
- $(MAKE) stagefeedback-bubble stagefeedback-end
-@endif gcc-bootstrap
+ for i in prev-*; do \
+ j=`echo $$i | sed s/^prev-//` ; \
+ cd $$r/$$i && \
+ { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
+ { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
+ done
@if gcc-bootstrap
NOTPARALLEL = .NOTPARALLEL