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".
>

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

Reply via email to