From cba14d85a854df8b5f24342c072acf21813761b6 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Tue, 6 May 2008 12:29:53 -0700 Subject: Error consistently when running recursive make When changing directories and running a sub-make, ensure that both the cd and make commands propagate errors to the parent make. --- src/egl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/egl/Makefile') diff --git a/src/egl/Makefile b/src/egl/Makefile index 931e9d0cb8..036bf1f01a 100644 --- a/src/egl/Makefile +++ b/src/egl/Makefile @@ -11,7 +11,7 @@ default: subdirs subdirs: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; $(MAKE)) || exit 1 ; \ + (cd $$dir && $(MAKE)) || exit 1 ; \ fi \ done @@ -19,6 +19,6 @@ subdirs: clean: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; $(MAKE) clean) ; \ + (cd $$dir && $(MAKE) clean) ; \ fi \ done -- cgit v1.2.3