Hi,

    I have an recursive make file to invoke all Makefiles in the
subdirectories. But i want the execution to stop when we encounter an error
in any of the sub directories. I thought of using if [ $? -ne 0 ] trap .But
i belive it wont work, since Makefile already has $? defined for a different
cause. Can someone help me out with this.

all:

          for dir in `$(SUB_DIRS)`; do \
          $(MAKE) -C $$dir; \
          done


I need to add the following chunk below, MAKE:

 if [  -ne 0 ];then echo "ERRROR" exit; \
 fi



rgds,
Satish
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to