[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Phony Target problem
From: |
Jeffrey Walton |
Subject: |
Re: Phony Target problem |
Date: |
Thu, 13 Oct 2011 01:18:03 -0400 |
On Thu, Oct 13, 2011 at 1:14 AM, 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?
>
> .PHONY:show
> show:
> address@hidden "Hi"
No. As a phony target, `make show` will run the rule for 'show', and
not a program in the file system named 'show' (for example,
/usr/bin/show or /usr/local/bin/show).
There's also an efficiency benefit, but I don't recall the details
(and don't have the book handy).
Jeff