[PATCH] Allow other *strap targets at the top level

Phil Edwards phil@jaj.com
Thu Apr 17 20:39:00 GMT 2003


It would be really handy to be able to perform other *strap targets from
the top level.  The visible change in this patch is to add bubblestrap,
quickstrap, cleanstrap, and restrap to the "build and make compare" rule.

Just to reduce the duplicated names, I turned the list into a variable;
that's the invisible change.

I've been using this in my local tree (x86-linux) for quite a while.

Comments?  Okay for trunk?


2003-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.tpl (GCC_STRAP_TARGETS):  New variable containing all the
	previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap,
	and restrap.
	* Makefile.in:  Regenerate.


Index: Makefile.tpl
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.41
diff -u -3 -p -r1.41 Makefile.tpl
--- Makefile.tpl	14 Mar 2003 20:44:36 -0000	1.41
+++ Makefile.tpl	17 Apr 2003 20:30:43 -0000
@@ -1189,8 +1189,9 @@ all-gcc: configure-gcc
 # In theory, on an SMP all those dependencies can be resolved
 # in parallel.
 #
-.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
-bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
+GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
+.PHONY: $(GCC_STRAP_TARGETS)
+$(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
 	@r=`${PWD}`; export r; \
 	s=`cd $(srcdir); ${PWD}`; export s; \
 	$(SET_LIB_PATH) \



More information about the Gcc-patches mailing list