On Thu, Oct 13, 2011 at 1:14 AM, MD.Mahbubur Rahman
<[email protected]> 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:
>        @echo "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

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to