help-make
[Top][All Lists]
Advanced

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

RE: make


From: Wong, Danny H.
Subject: RE: make
Date: Thu, 4 May 2006 23:34:03 -0700

Joost,
        Thanks for the link. I will check it out. Right now, I have an
issue when performing a "CD" command in a for loop. When there is no
directory ( say qatest ), the loops goes back to the very top of the
parent directory and keeps building (looping endlessly) until the
machine runs out of memory! I want to perform a check if the CD failed,
then ignore it and go onto the next one or failed the whole build and
exit. I was hoping there is something like the if test statement below I
used to check if the file built or not.

build:
        $(QUIET) for sd in $(SUBDIRS); do ( $(CD) "$$sd";       \
        \
        $(ECHO) "***** Building DEBUG version of $$sd lib *****";
$(MAKE) clean; \
        $(MAKE) PTV_BUILD=$(DBG_BUILD) $(DBG_TARGET); \
        if test -f "$$sd".ptv; then $(CP) "$$sd".ptv $(DBG_TARGET)dir;
fi; \
        \
        $(MAKE) clean; $(ECHO) "***** Building PRODUCTION version of
$$sd lib *****"; \
        $(MAKE) PTV_BUILD=$(PRD_BUILD) $(PRD_TARGET); \
        if test -f "$$sd".ptv; then $(CP) "$$sd".ptv $(PRD_TARGET)dir;
fi;); done 


Thanks 
Danny Wong 
SCM Engineer 


-----Original Message-----
From: Leeuwesteijn,Joost [mailto:address@hidden 
Sent: Thursday, May 04, 2006 11:19 PM
To: Wong, Danny H.
Cc: address@hidden
Subject: RE: make

>   dw> I was wondering if there when using Cygnus "make". Is there a
>   dw> MAKESTATUS Marco to check the previous command exit status?
> No, there is not.
>
> I'm not at all sure how you intend to use such a thing... I don't see 
> very many, if any, ways to use it.

Perhaps the same reason I posted a question on how to handle non-zero
exit codes without using '-' (IGNORE_ERROR) in front of a command. My
compiler also returns a non-zero exit code in case of (just) warnings.
Danny, you might want want to check that post. Subject = "Ignore error",
posted by me.
Hang on, this one:
http://lists.gnu.org/archive/html/help-make/2006-05/msg00007.html

--
Joost Leeuwesteijn


- - - - - - - Appended by PowerTV, A division of Scientific Atlanta. - - - - - 
- - 
This e-mail and any attachments may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The information is 
solely intended for the named addressee (or a person responsible for delivering 
it to the addressee). If you are not the intended recipient of this message, 
you are not authorized to read, print, retain, copy or disseminate this message 
or any part of it. If you have received this e-mail in error, please notify the 
sender immediately by return e-mail and delete it from your computer.




reply via email to

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