aboutsummaryrefslogtreecommitdiff
path: root/test-build.mk
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-07-18 05:56:28 +0000
committerK. Richard Pixley <rich@cygnus>1992-07-18 05:56:28 +0000
commitdae8a4cf86afcb99276e1e059b017712e3d7200e (patch)
tree6b0bbb797923a6e02bae10776f165bddb36c2748 /test-build.mk
parent846b9d7b0d707bd8a876c58323b1ff73df89ab0e (diff)
downloadgdb-dae8a4cf86afcb99276e1e059b017712e3d7200e.zip
gdb-dae8a4cf86afcb99276e1e059b017712e3d7200e.tar.gz
gdb-dae8a4cf86afcb99276e1e059b017712e3d7200e.tar.bz2
predicate stage3 and comparison on the existence of gcc
Diffstat (limited to 'test-build.mk')
-rw-r--r--test-build.mk40
1 files changed, 26 insertions, 14 deletions
diff --git a/test-build.mk b/test-build.mk
index 946cffa..bd8884d 100644
--- a/test-build.mk
+++ b/test-build.mk
@@ -192,15 +192,19 @@ $(host)-stamp-stage2-configured:
do3: $(HOLESDIR) $(host)-stamp-stage3
$(host)-stamp-stage3:
- if [ -d $(STAGE3DIR) ] ; then \
- mv $(STAGE3DIR) $(WORKING_DIR) ; \
+ if [ -d $(TREE)/gcc ] ; then \
+ if [ -d $(STAGE3DIR) ] ; then \
+ mv $(STAGE3DIR) $(WORKING_DIR) ; \
+ else \
+ true ; \
+ fi ; \
+ PATH=$(release_root)/H-$(host)/bin:`pwd`/$(HOLESDIR) ; \
+ export PATH ; \
+ SHELL=sh ; export SHELL ; \
+ $(TIME) $(MAKE) -f test-build.mk -w $(STAGE3DIR) host=$(host) $(FLAGS_TO_PASS) ; \
else \
true ; \
fi
- PATH=$(release_root)/H-$(host)/bin:`pwd`/$(HOLESDIR) ; \
- export PATH ; \
- SHELL=sh ; export SHELL ; \
- $(TIME) $(MAKE) -w $(STAGE3DIR) host=$(host) $(FLAGS_TO_PASS)
touch $@
$(STAGE3DIR): $(host)-stamp-stage3-checked
@@ -350,15 +354,23 @@ $(host)-stamp-holes:
.PHONY: comparison
comparison:
ifeq ($(subst rs6000,iris4,$(subst decstation,iris4,$(host))),iris4)
- for i in `cd $(STAGE3DIR) ; find . -name \*.o -print` ; do \
- tail +10c $(STAGE2DIR)/$$i > foo1 ; \
- tail +10c $(STAGE3DIR)/$$i > foo2 ; \
- cmp foo1 foo2 || echo $$i ; \
- done
+ if [ -d $(TREE)/gcc ] ; then \
+ for i in `cd $(STAGE3DIR) ; find . -name \*.o -print` ; do \
+ tail +10c $(STAGE2DIR)/$$i > foo1 ; \
+ tail +10c $(STAGE3DIR)/$$i > foo2 ; \
+ cmp foo1 foo2 || echo $$i ; \
+ done ; \
+ else \
+ true ; \
+ fi
else
- for i in `cd $(STAGE3DIR) ; find . -name \*.o -print` ; do \
- cmp $(STAGE2DIR)/$$i $(STAGE3DIR)/$$i ; \
- done
+ if [ -d $(TREE)/gcc ] ; then \
+ for i in `cd $(STAGE3DIR) ; find . -name \*.o -print` ; do \
+ cmp $(STAGE2DIR)/$$i $(STAGE3DIR)/$$i ; \
+ done ; \
+ else \
+ true ; \
+ fi
endif
.PHONY: clean