help-make
[Top][All Lists]
Advanced

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

Re: Phony Target problem


From: Kristof Provost
Subject: Re: Phony Target problem
Date: Thu, 13 Oct 2011 10:57:46 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On 2011-10-12 22:14:00 (-0700), MD.Mahbubur Rahman <address@hidden> wrote:
> 
> Hi friends,
> I have following code in make file. I expected as the show is a phony
> target, it will not execute, but I found it executing. How can I prevent it?
> 
Your expectation is wrong. 
A phony target is simply a target which doesn't create a file, so make
doesn't check if the file already exists before executing the rule.

See section 4.6 of the manual:
http://www.gnu.org/software/make/manual/make.html#Phony-Targets

Regards,
Kristof




reply via email to

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