From 705ca12e2b803d93652fb7373017687f4a6aa872 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 14 Jun 2007 08:52:42 +0000 Subject: 2007-06-14 Paolo Bonzini * Makefile.tpl (cleanstrap): Don't delete the toplevel Makefile. (distclean-stage[+id+]): Possibly delete stage_last. * Makefile.in: Regenerate. --- Makefile.tpl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile.tpl') diff --git a/Makefile.tpl b/Makefile.tpl index 958d4cb6e2..6164a4164c 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -1361,12 +1361,21 @@ do-clean: clean-stage[+id+] .PHONY: distclean-stage[+id+] distclean-stage[+id+]:: @: $(MAKE); $(stage) + @test "`cat stage_last`" != stage[+id+] || rm -f stage_last rm -rf stage[+id+]-* [+ IF compare-target +][+compare-target+] [+ ENDIF compare-target +] [+ IF cleanstrap-target +] .PHONY: [+cleanstrap-target+] -[+cleanstrap-target+]: distclean [+bootstrap-target+] +[+cleanstrap-target+]: do-distclean local-clean + echo stage[+id+] > stage_final + @r=`${PWD_COMMAND}`; export r; \ + s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ + $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble + @: $(MAKE); $(unstage) + @r=`${PWD_COMMAND}`; export r; \ + s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ + $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target [+ ENDIF cleanstrap-target +] @endif gcc-bootstrap -- cgit v1.2.1