help-make
[Top][All Lists]
Advanced

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

Re: bug or feature ?


From: Paul Smith
Subject: Re: bug or feature ?
Date: Sat, 24 Oct 2009 22:06:05 -0400

On Tue, 2009-10-13 at 21:41 +0300, Denis Onischenko wrote:
> This error occurs when compiling the linux kernel with latest make
> version (3.81.90) from cvs repository:
> 
> .../arch/powerpc/Makefile:168: *** mixed implicit and normal rules.
> Stop.

It's never been legal to mix implicit and explicit (normal) rules.
However, older versions of make didn't always catch these problems; if
you started with a pattern target then had non-pattern targets later, it
would fail.  If you started with non-pattern targets and had pattern
targets later, it would succeed.  The newest version is consistent: you
can't mix them regardless of the order they appear in.

Even though it didn't give an error, the makefile you had didn't work as
you expected it to.  Make would create a pattern rule like this:

        zImage% dtbImage% treeImage.% cuImage.% simpleImage.%:

which doesn't do what I'm pretty sure you meant; see the GNU make
manual, section on multiple patterns in a pattern rule.

-- 
-------------------------------------------------------------------------------
 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]