help-make
[Top][All Lists]
Advanced

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

Re: .PHONY: %.only target


From: baumann.pan
Subject: Re: .PHONY: %.only target
Date: Tue, 19 Jul 2011 08:43:25 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 ThunderBrowse/3.3.5

Hi Guru,

why .PHONY : *.only
*.only:
        hi there $@
would print hi there a.only when do make a.only if there is a.only file.

what's differenece between % and *?

Thanks.

On 04/21/2011 12:50 PM, Paul Smith wrote:
> 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".
>



reply via email to

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