From: Andy Polyakov <appro@openssl.org>
Date: Sun, 13 Mar 2016 20:49:15 +0000 (+0100)
Subject: engines/Makefile.in: some [older] shell complain about 'for i ;',
X-Git-Tag: OpenSSL_1_1_0-pre4~27
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d43a8fdcd495825a3507950caa4cdc7e81d681db;p=oweals%2Fopenssl.git

engines/Makefile.in: some [older] shell complain about 'for i ;',
but not if there is reference to empty variable.

Reviewed-by: Richard Levitte <levitte@openssl.org>
---

diff --git a/engines/Makefile.in b/engines/Makefile.in
index aaffe1e8dd..4c8ca99c06 100644
--- a/engines/Makefile.in
+++ b/engines/Makefile.in
@@ -10,7 +10,7 @@ CFLAG=-g
 MAKEFILE=	Makefile
 AR=		ar r
 
-RECURSIVE_MAKE=[ -z "$(ENGDIRS)" ] || for i in $(ENGDIRS) ; do \
+RECURSIVE_MAKE= for i in $${ENGDIRS:-$(ENGDIRS)} ; do \
 		    (cd $$i && echo "making $$target in $(DIR)/$$i..." && \
 		    $(MAKE) -e TOP=../.. DIR=$$i $$target ) || exit 1; \
 		done;