diff options
author | Brian <[email protected]> | 2007-05-09 16:22:53 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-05-09 16:23:11 -0600 |
commit | 16c503f39a05726f3e994e42cb1c03e0a308b80d (patch) | |
tree | 1603daefea6ba5c115a4a4fed027e2838df4a153 /progs | |
parent | 4d5d4e1f97bf8d5c55ef817f7a28f920accc151b (diff) |
Tweak the shell scripting for descending into and building subdirs.
In general, use this:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE)) || exit 1; \
fi \
done
Basically, silently skip missing subdirs but generate an error and stop if
there's a compilation or install problem.
This was done inconsistantly before. In once case, a missing subdir was
causing us to go into an infinte loop!
Diffstat (limited to 'progs')
-rw-r--r-- | progs/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/Makefile b/progs/Makefile index d5ec17d43e5..5e705efa7ee 100644 --- a/progs/Makefile +++ b/progs/Makefile @@ -17,7 +17,7 @@ message: subdirs: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; $(MAKE)) || exit 1 ; \ + (cd $$dir && $(MAKE)) || exit 1 ; \ fi \ done @@ -27,6 +27,6 @@ install: clean: @for dir in $(SUBDIRS) tests ; do \ if [ -d $$dir ] ; then \ - (cd $$dir ; $(MAKE) clean) ; \ + (cd $$dir && $(MAKE) clean) ; \ fi \ done |