Follow-up Comment #4, bug #38945 (project make):
Here's a minimal testcase to reproduce this bug.
Put the following in Makefile (Unix or DOS linebreaks):
include snippet
define RULES
clean::
$(RM) $(OBJS) $(OBJS:.o=.d)
endef
$(eval $(RULES))
Put the following in snippet (DOS
If your version is 3.80 or newer, please cut/paste (exactly) your
makefile so we can see it.
I took the example from the documentation:
http://www.gnu.org/software/make/manual/html_node/Eval-Function.html#Eval-Function
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software
On Thu, 2013-05-23 at 04:10 -0400, bug-make-ow...@gnu.org wrote:
define PROGRAM_template =
This syntax is not available in GNU make 3.81. It was introduced in GNU
make 3.82. Thus the PROGRAM_template variable is not defined, and
expands to the empty string, and thus your eval does nothing.
On Wed, 2013-05-22 at 22:09 +0200, Stefano Lattarini wrote:
On 05/22/2013 06:56 PM, Paul Smith wrote:
I've reworked the MFLAGS / MAKEFLAGS generation to be more regular and
rigorous yesterday, for 4.0, and to preserve _some_ backward-compat; I
had thought about this issue when I did so.