[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Target-specific Pattern rule works: Is this a feature?
From: |
Paul Smith |
Subject: |
Re: Target-specific Pattern rule works: Is this a feature? |
Date: |
Mon, 10 Feb 2014 13:42:23 -0500 |
On Mon, 2014-02-10 at 17:40 +0100, Lutz Kohlrausch wrote:
> In the Makefiles of a build project here, there is a line with two
> colons. It seems to define what I would call a target-specific pattern
> rule. I've included a simplified example below (see especially line
> 9).
That is called a static pattern rule. You can look it up in the docs.
> I have searched for documentation of this feature as I'd like that we
> use an established feature of Gnu Make and not something that works
> accidentally and might go away in future. But I have not found
> documentation that says this is legal. For example for target-specific
> variable assignments, such documentation exists.
Static pattern rules have been supported for decades in GNU make, and
are definitely a standard feature that won't ever go away.