help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with status.


From: PATTON, BILLY \(SBCSI\)
Subject: Problems with status.
Date: Thu, 13 Apr 2006 14:50:32 -0500

In my growing makefile I have found that I am missing the status of
commands.

I may have 10 lines in my command but all are ; \  to make one process.

example
target :
  @for X in variable ; do \
    if [ -f $$$$X ] ; then \
      $(EXEC_LOG) some_scommand ; \
    fi ; \
  done ; \
  $(DO_SOMETHING) ;\
  if [ a = b ] ; then \
     bla bla bla ; \
  fi 


EXEC_LOG is failing but make is continuing to run.  As I understand it
the last ; wins.

This came to me through the K's of defunct processes.  

Do I have to do something like
  stat=0; \
@for X in xxx ; do \
  $(EXEC_LOG) ...
  let stat=stat+$?
...
fi ; \
$$stat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]