[Top][All Lists]

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

Re: Automatic goal trace back

From: John Graham-Cumming
Subject: Re: Automatic goal trace back
Date: Thu, 08 Jun 2006 11:34:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/

Bhaskar G wrote:
a: b
        @echo "A"
        @touch a
        @ls a
c: b
        @echo "C"
        @touch c
        @ls c
        @echo "B"
        @ls b

when I run gmake a then it would return with an error code of 1.

Why?  This seems like a perfectly normal example to me.  What's the error?

I would like gmake to print the target that was being built ie, b and it was trying to satisfy the condition for a so gmake should print b and a.

If I run gmake c then it should return the goals
b and c.

Read this article that I wrote on tracing Makefile execution. That should give you what you are looking for:

John Graham-Cumming


GNU Make Standard Library:
GNU Make Debugger:
Fast, Parallel Builds:

Sign up for my Spam and Anti-spam Newsletter

Help out in the fight against spam

reply via email to

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