File s390-tools-sles11sp2-fix-recursive-build.patch of Package s390-tools
Do not use subshells from recursive build
With this change, the recursive build stops with error code != 0 if one
directory fails to build.
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/Makefile
+++ b/Makefile
@@ -13,15 +13,15 @@ all: subdirs_make
subdirs_make:
set -e ; for dir in $(SUB_DIRS) ; do \
- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH); cd .. ); \
+ cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH); cd ..; \
done
clean:
set -e ; for dir in $(SUB_DIRS) ; do \
- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) clean; cd .. ); \
+ cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) clean; cd ..; \
done
install:
set -e ; for dir in $(SUB_DIRS) ; do \
- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) install; cd .. ); \
+ cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) install; cd ..; \
done