diff options
author | Dan Nicholson <[email protected]> | 2008-05-06 12:29:53 -0700 |
---|---|---|
committer | Dan Nicholson <[email protected]> | 2008-05-06 12:29:53 -0700 |
commit | cba14d85a854df8b5f24342c072acf21813761b6 (patch) | |
tree | 60b6fd20ef1ba10ebbc1ddf8dc6e11908aa063c2 /src/glu | |
parent | 50f7e6fb5f0754093e11b781b916034001d44a09 (diff) |
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.
Diffstat (limited to 'src/glu')
-rw-r--r-- | src/glu/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glu/Makefile b/src/glu/Makefile index 836baa684cb..3ee5cfddd7a 100644 --- a/src/glu/Makefile +++ b/src/glu/Makefile @@ -10,7 +10,7 @@ SUBDIRS = $(GLU_DIRS) default: $(TOP)/configs/current @for dir in $(SUBDIRS) ; do \ - (cd $$dir ; $(MAKE)) ; \ + (cd $$dir && $(MAKE)) || exit 1 ; \ done # GLU pkg-config file @@ -29,5 +29,5 @@ install: glu.pc clean: @for dir in $(SUBDIRS) ; do \ - (cd $$dir ; $(MAKE) clean) ; \ + (cd $$dir && $(MAKE) clean) ; \ done |