[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Make documentation example error
From: |
Paul Smith |
Subject: |
Re: GNU Make documentation example error |
Date: |
Thu, 28 Jan 2021 10:27:06 -0500 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
On Thu, 2021-01-28 at 12:34 +0000, Niko's ProtonMail Account wrote:
> I think there may be a mistake in the section “5.8 Defining Canned
> Recipes” of the GNU Make manual:
> https://www.gnu.org/software/make/manual/make.html#Canned-Recipes.
>
> The examples show the “define” directive followed by an equals sign
> (“=“), however for me it only works once I remove the equals sign as
> shown in the section on defining multi-line variables:
> https://www.gnu.org/software/make/manual/make.html#Multi_002dLine.
>
> Interestingly, even that section contains an example where the equals
> sign is used (at the bottom of the section) and it likewise only
> works once I remove the equals sign.
That's not an error.
It just means that you're using an old version of GNU make, that
doesn't support this syntax.
The online documentation documents the current latest release of GNU
make, which is GNU make 4.3. If you're using an older release of GNU
make you should look on your system to find the documentation
appropriate for whatever version you have.
This is something to keep in mind for anything you see in the manual,
if you want or need to continue to use an older version of GNU make.