help-make
[Top][All Lists]
Advanced

[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/0.6.0.104

Bhaskar G wrote:
a: b
        @echo "A"
        @touch a
        @ls a
c: b
        @echo "C"
        @touch c
        @ls c
b:
        @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:

http://www.cmcrossroads.com/content/view/6535/120/

John.
--
John Graham-Cumming
address@hidden

Home: http://www.jgc.org/
Blog: http://www.jgc.org/blog/

POPFile: http://getpopfile.org/
GNU Make Standard Library: http://gmsl.sf.net/
GNU Make Debugger: http://gmd.sf.net/
Fast, Parallel Builds: http://www.electric-cloud.com/

Sign up for my Spam and Anti-spam Newsletter
at http://www.jgc.org/

Help out in the fight against spam
http://www.spamorham.org/




reply via email to

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