help-make
[Top][All Lists]
Advanced

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

Fwd: Re: Make -k option...


From: Danny Barraza
Subject: Fwd: Re: Make -k option...
Date: Fri, 09 Sep 2011 10:29:01 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 OracleBeehiveExtension/1.0.0.2-OracleInternal ObetStats/CAT_1303237123759-277887603 Thunderbird/3.1.11

To all the smart gnu make people...I have a bit of a deli ma...please read the thread below for the problem...thank you all...

Sample code:

Sample code:

run_script:
        @$(ECHO)
        @$(PRINTF) "Running chkswhw script."
        @$(ECHO)
        @$(PRINTF) "Validation of H/W and S/W Infra components."
        @$(ECHO)
        @chkswhw ; \
        if [ $$? -eq 0 ] ; then         \
        echo chkswhw exited successfully...;          \
        else            \
        $(error Fatal error has occurred stopping Make...);         \
        fi

Danny

-------- Original Message --------
Subject:        Re: Make -k option...
Date:   Fri, 09 Sep 2011 10:08:08 +0300
From:   Eli Zaretskii <address@hidden>
Reply-To:       Eli Zaretskii <address@hidden>
To:     Danny Barraza <address@hidden>



 Date: Thu, 08 Sep 2011 16:43:51 -0700
 From: Danny Barraza<address@hidden>

 Hi Eli, it's Danny once again...also thanks for all your help on the
 previous question.  I have another one.  I'm trying to Exit out of Make
 if my return code from a command is non-zero, but there's one catch I
 start make with the following: "make -k all" -k option suppresses all
 errors.  How can I force make to STOP, but the -k option needs to be
 there.  I tried using the error control function but that stops make no
 mater what the exit code is 0,1,2..., anyway need some help here.

I can think of no way to do that if you use "make -k".  But I suggest
to ask this question on address@hidden, the smart people out there
will probably find some inventive way.



reply via email to

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