[Top][All Lists]

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

Re: Issue with automatic dependency generation in gmake

From: CHEN Cheng
Subject: Re: Issue with automatic dependency generation in gmake
Date: Fri, 11 Sep 2009 14:32:11 +0800
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Sep 10, 2009 at 09:56:30PM -0700, Varambally, Dheeraj B wrote:
> Chen,
> Thanks for the reply. I'm trying to generate and include the dependencies as 
> described in section 4.14 (automatic prerequisite generation) of the GNU 
> users guide. The dependencies are generated by the compiler automatically 
> while it compiles the source (dependency generation phase). When it 
> encounters a compile error during this phase it continues to build and then 
> during real make phase it attempts compile again and aborts. My question is 
> can we fail and abort upon encountering the first error in the dependency 
> generation phase itself since it includes compilation as well rather than 
> going through all the remaining c files.

Maybe it works if you change `-include ...' to `include ...', as below:

all: ;


include bad2.d bad.d bad1.d


reply via email to

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