Hi,
Here is an example
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.
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.
Thanks & Regards,
Bhaskar G
=================================================
Sr. Technical Leader
Philips Semiconductors / CTO / ST&A/SDM
E-mail: [EMAIL PROTECTED]
Phone: +91 80 2557 9000, Ext 1549
Fax: +91 80 2556 1243
GSM: +91 944 876 1340
Office: Philips Innovation Campus, 11th floor, Tower C
Address: No 1, Murphy Road, Ulsoor, Bangalore - 560 008
Country: INDIA
=================================================
|
John Graham-Cumming <[EMAIL PROTECTED]> Sent by:
04/18/2006 09:21 PM
|
|
Bhaskar G wrote:
> Is there a way to print if a make target can not be built, or a command
> fails. I.E. which goals (nested) was make trying to satisfy when it failed.
Could you provide a clearer description (perhaps even with a small
example Makefile) that shows what you would like to achieve? I can't
quite tell from what you've written.
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-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
