help-make
[Top][All Lists]
Advanced

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

how make concludes that target is out of date


From: sharan basappa
Subject: how make concludes that target is out of date
Date: Fri, 01 Jun 2007 11:21:40 +0000

I have following make rules in my file

one : a.c
       echo "hello"

two : c.c
       echo "hello"


a.c exists and c.c does not exist ..

My question is

a) How make takes up a rule and decides that target is
out of date and hence command needs to be executed.

b) If the target is not a file but prereq is and this preq file exists then what happens. Rule one above a.c exists but make exits with message make: `one' is up to date.

c) If target exists but prereq does not. If you refer to second rule above then
make does not execute the command echo "hello" and exits with message
make: *** No rule to make target `c.c', needed by `two'.  Stop.

I would be glad if someone could point me to right documentation to understand better

_________________________________________________________________
Fly Chn-Blr for Rs.249 only. Log on to MakeMyTrip now! http://ss1.richmedia.in/recurl.asp?pid=50





reply via email to

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