Hi,

OS is Solaris 5.9
make is 3.8.0

We have a large project whose code base consists of both java and native code. We are using ant as our build tool - and calling make from ant. I want to capture the exit status when make encounters a problem, even if the problem is deep down in the directory structure that it's building. What happens now is that my return status is usually 0 because of the way I'm invoking make.
Is there some way for me to capture the exit status from make at the time that it fails? Or set a flag?
My Makefile is pretty basic:

all: versionfile $(BUILDDIRS)
@(for i in $(MAKEDIRS); do cd $$i; echo "Making in $$i" ;make -f Makefile.sun; cd ..; done)

Thanks much.







_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to