Re: [PATCH] change kbuild to not rely on incorrect GNU make behavior

From: Sam Ravnborg
Date: Mon Mar 06 2006 - 15:43:53 EST


On Sun, Mar 05, 2006 at 07:41:07PM -0500, Paul D. Smith wrote:
> %% Sam Ravnborg <sam@xxxxxxxxxxxx> writes:
>
> sr> Thanks Paul.
> sr> Adapted to -rc4 and applied to my kbuild tree which I have pushed out.
> sr> For reference I added the applied patch below.
>
> OK. Note that this:
>
> sr> -.PHONY: tar%pkg
> sr> +PHONY += tar%pkg
> sr> tar%pkg:
>
> won't do what you expect. tar%pkg is a pattern rule, but .PHONY doesn't
> take patterns so you're declaring the actual file named literally
> 'tar%pkg' to be phony.

So I can just let all relevant target rules include FORCE as
prerequisite and skip the PHONY part all together.
Thats what FORCE is there for anyway so this is just normal kbuild style
anyway.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/