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
[EMAIL PROTECTED]

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/


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to