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: ;
%.d:
false
include bad2.d bad.d bad1.d
HTH,
Cheng
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make