Paul,
 
It works. Thanks for the help.
 
Yong

 
On 10/28/05, Paul Jarc <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
> A problem I currently have is if there are some compiling errors in
> d4, the compiler will not stop, and keep working on d5, d6, d7.

That's because the rule, as written, doesn't check the exit status of
the sub-makes.

>         for subdir in $(SUBDIRS); do\
>         cd $$subdir;\
>         $(MAKE) ARCH=mips;\
>         cd -;\
>         done

       for subdir in $(SUBDIRS); do \
         { cd $$subdir && \
           $(MAKE) ARCH=mips &&
           cd -; \
         } || exit "$$?"; \
       done

You may also find make's -C option useful.


paul

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to