* rules.make (%-recursive): Propagate error exit from sub-makes
even if invoked with 'make -k'.
svn path=/trunk/mcs/; revision=35625
+2004-11-04 Raja R Harinath <rharinath@novell.com>
+
+ * platforms/linux.make (platform-check): Make more robust.
+ * rules.make (%-recursive): Propagate error exit from sub-makes
+ even if invoked with 'make -k'.
+
2004-10-29 Raja R Harinath <rharinath@novell.com>
* profiles/net_2_0_bootstrap.make (PROFILE_MCS_FLAGS): Remove
hidden_suffix =
platform-check:
- @set fnord $(BOOTSTRAP_MCS) ; if type $$2 >/dev/null 2>&1 ; then :; else \
+ @set fnord $(BOOTSTRAP_MCS) ; while test "$$#" > 2; do case $$2 in *=*) shift ;; *) break ;; esac done ; \
+ if type $$2 >/dev/null 2>&1 ; then :; else \
echo "*** You need a C# compiler installed to build MCS. (make sure mcs works from the command line)" ; \
echo "*** Read INSTALL.txt for information on how to bootstrap" ; \
echo "*** a Mono installation." ; \
endif
%-recursive:
- @set . $$MAKEFLAGS; \
+ @set . $$MAKEFLAGS; final_exit=:; \
case $$2 in --unix) shift ;; esac; \
case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
list='$(PROFILE_SUBDIRS)'; for d in $$list ; do \
- (cd $$d && $(MAKE) $*) || $$dk ; \
- done
+ (cd $$d && $(MAKE) $*) || { final_exit="exit 1"; $$dk; } ; \
+ done; \
+ $$final_exit
ifndef DIST_SUBDIRS
DIST_SUBDIRS = $(SUBDIRS) $(DIST_ONLY_SUBDIRS)