bug-make
[Top][All Lists]
Advanced

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

bug in documentation - eval function


From: Piotr Jankowski
Subject: bug in documentation - eval function
Date: Wed, 13 Jan 2021 09:18:30 +0100

Hi,

I possibly discovered a bug in the documentation on the manual page hosted at:
https://www.gnu.org/software/make/manual/html_node/Eval-Function.html

In the example makefile:
define PROGRAM_template =
 $(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
 ALL_OBJS   += $$($(1)_OBJS)
endef

Should probably be without the equals sign like so:
define PROGRAM_template
 $(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
 ALL_OBJS   += $$($(1)_OBJS)
endef

At least on GNU Make 3.81 the one with the equal sign does not work. It does not cause a visible error but does not work.

Thanks,
Piotr Jankowski
 

reply via email to

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