[Top][All Lists]

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

Re: Makefile to

From: John Calcote
Subject: Re: Makefile to
Date: Sun, 15 Aug 2010 10:42:19 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100802 Thunderbird/3.1.2

 On 8/14/2010 7:09 PM, samson.pierre wrote:
> Yes it works :-)
> But I see a little warning when I call autoreconf :
> `%'-style pattern rules are a GNU make extension
> I think it is because I use this character ‘%’ in my rules. But this ‘%’ is 
> very interesting to define an implicit rules.
> Is there an equivalent or anything else which can help me to write this rule 
> avoiding this warning message?

The use of % in rules is indeed a GNU make extension. This is called a
pattern rule. Pattern rules in GNU make should be used in place of older
style suffix rules which use asterisk (*) to define the stem of a
wildcard pattern. The difference is that pattern rule patterns can
define general file matching patterns (e.g., a%de.o) , whereas suffix
rules can only define patterns that match files with a particular
extension (e.g., *.txt).

The warning you're seeing is harmless enough on platforms that support
GNU make. The purpose of the warning is to let you know that your users
will not be able to build your project on systems that support the
Autotools, but do not support GNU make (not many these days).


reply via email to

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