aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-10-25 02:14:50 +0000
committerSteve Chamberlain <steve@cygnus>1991-10-25 02:14:50 +0000
commita0f47eb73ca2ba93a07e085a6859c47036418964 (patch)
treefcca2c7ff33ab4c884ed68ca64f06f27b7aae0c6 /Makefile.in
parent7e993cab2874c2ec8a45a99a083d56e17cee61d3 (diff)
downloadgdb-a0f47eb73ca2ba93a07e085a6859c47036418964.zip
gdb-a0f47eb73ca2ba93a07e085a6859c47036418964.tar.gz
gdb-a0f47eb73ca2ba93a07e085a6859c47036418964.tar.bz2
Does't pass env variables down if localenv file is in target dir.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in26
1 files changed, 23 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 168f428..9576037 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#
-# Last Mod Tue Oct 22 22:34:49 PDT 1991, by rich@cygnus.com
+# Last Mod Tue Oct 22 22:40:07 PDT 1991, by rich@cygnus.com
#
# $Id$
@@ -36,15 +36,32 @@ BISON = `if [ -d $(unsubdir)/../bison ] ; \
SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib
OTHERS =
+ALL = all.normal
+
#### host and target specific makefile fragments come in here.
###
-all:
+all: $(ALL)
+
+all.normal:
$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
+# this is a bad hack.
+all.xclib: all.normal
+ if [ -d clib ] ; then \
+ (cd clib ; $(MAKE)) ; \
+ fi
+
subdir_do: force
for i in $(DODIRS); do \
- if [ -d $(unsubdir)/$$i -o -d $(unsubdir)/$$i.$(target) ] ; then \
+ if [ -f $(unsubdir)/$$i/localenv -o -f $(unsubdir)/$$i.$(target)/localenv ] ; then \
+ if (cd $(unsubdir)/$$i`if [ -d $(unsubdir)/$$i.$(target) ] ; \
+ then echo .$(target) ; fi`$(subdir); \
+ $(MAKE) \
+ "against=$(against)" \
+ "BISON=$(BISON)" $(DO)) ; then true ; \
+ else exit 1 ; fi ; \
+ else if [ -d $(unsubdir)/$$i -o -d $(unsubdir)/$$i.$(target) ] ; then \
if (cd $(unsubdir)/$$i`if [ -d $(unsubdir)/$$i.$(target) ] ; \
then echo .$(target) ; fi`$(subdir); \
$(MAKE) \
@@ -58,8 +75,11 @@ subdir_do: force
"BISON=$(BISON)" $(DO)) ; then true ; \
else exit 1 ; fi ; \
else true ; fi ; \
+ fi ; \
done
+
+
bootstrap:
$(MAKE) all
$(MAKE) stage1