help-make
[Top][All Lists]
Advanced

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

Re: Force Build a Target


From: Paul Smith
Subject: Re: Force Build a Target
Date: Wed, 11 May 2011 12:22:50 -0400

On Wed, 2011-05-11 at 18:24 +0530, Ajay Jain wrote:
> > Add:
> >        .PHONY: 2.o
> 
> It should be .PHONY: 2.c. If we keep 2.o as phony, then 2.o is never
> rebuilt. If we keep 2.c as phony, then we can always rebuild 2.o
> irrespective of timestamp.

You've clipped enough of this (and I don't remember the context) that I
can't say whether the .PHONY should be the .o or the .c.

However, your statement "If we keep 2.o as phony, then 2.o is never
rebuilt" is not correct as written.  A .PHONY target is ALWAYS rebuilt;
that's what it means to be phony.




reply via email to

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