[Top][All Lists]

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

Re: make does not stop on error

From: Eli Zaretskii
Subject: Re: make does not stop on error
Date: Wed, 03 May 2006 10:44:46 +0300

> Date: Tue, 2 May 2006 16:01:36 -0400
> Cc: "grischka" <address@hidden>, address@hidden
> From: "Paul D. Smith" <address@hidden>
> Since "T2" was already tried (and failed) during the "reading makefiles"
> phase, and then the error was ignored... it's not clear exactly how this
> should work.
> Actually, in the example above the way make 3.81 works is pretty clearly
> correct.

Yes, I agree.

> The real question becomes if you switch T1 and T2 around...
>     all: T2 T1
>     T1:; exit 101
>     T2:; exit 202
>     -include T2
> Now, you get the first "exit 202" as part of the include, which is
> ignored.  Then, should make try to run "exit 202" again for T2 because
> of the all: target, and fail?  Or should it skip that target since it
> was already built, and continue on to "exit 101"?

I see the dilemma.  Thanks for the explanation.

reply via email to

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