This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix stage1-start target
- From: Matt Kraai <kraai at alumni dot cmu dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Jul 2003 08:21:32 -0700
- Subject: Fix stage1-start target
Howdy,
The stage1-start target will not behave properly on some systems
if SUBDIRS is empty. The following patch fixes it, following the
example of the other -start targets.
I ran "make bootstrap" and verified that the directories are
created in the stage1 subdirectory.
OK to commit?
--
Matt Kraai kraai@alumni.cmu.edu Debian GNU/Linux
* Makefile.in (stage1-start): Handle an empty SUBDIRS.
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1101
diff -3 -c -p -r1.1101 Makefile.in
*** gcc/Makefile.in 6 Jul 2003 18:50:43 -0000 1.1101
--- gcc/Makefile.in 8 Jul 2003 03:15:51 -0000
*************** compare4-lean: @make_compare_target@4-le
*** 3734,3740 ****
stage1-start:
-if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage1
! -for dir in $(SUBDIRS) ; \
do \
if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi ; \
done
--- 3734,3740 ----
stage1-start:
-if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage1
! -subdirs="$(SUBDIRS)"; for dir in $$subdirs; \
do \
if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi ; \
done