help-make
[Top][All Lists]
Advanced

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

Re: .PHONY: %.only target


From: Paul Smith
Subject: Re: .PHONY: %.only target
Date: Thu, 21 Apr 2011 00:50:21 -0400

On Thu, 2011-04-21 at 11:17 +0800, baumann Pan wrote:

> .PHONY: %.only
> %.only:
>           hi there $@
> 
> why when there is a file match %.only, e.g. a.only
> make a.only will not not show hi there a.only.

The .PHONY target doesn't take patterns as prerequisites.  Only
fully-qualified target names.  The line ".PHONY: %.only" declares the
explicit target name '%.only' to be phony, not any target that matches
the pattern "%.only".

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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