[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make: eval template example bug?
From: |
Daniel Borkmann |
Subject: |
make: eval template example bug? |
Date: |
Wed, 7 Nov 2012 12:33:08 +0100 |
Hi together,
I have make 3.81 on a Debian stable machine. I tried out the example
from the eval function given in
http://www.gnu.org/software/make/manual/make.html#Eval-Function . The
example *only* works for me if I remove the trailing '=' character, as
provided in the patch below. If the '=' is present, it only tries to
link non-existant object files. Did this behavior change in make 3.82?
$ make --version
GNU Make 3.81
[...]
This program built for x86_64-pc-linux-gnu
Thanks,
Daniel
diff --git a/doc/make.texi b/doc/make.texi
index fc7e8a3..90dcac9 100644
--- a/doc/make.texi
+++ b/doc/make.texi
@@ -7420,7 +7420,7 @@ client_LIBS = protocol
.PHONY: all
all: $(PROGRAMS)
-define PROGRAM_template =
+define PROGRAM_template
$(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
ALL_OBJS += $$($(1)_OBJS)
endef
- make: eval template example bug?,
Daniel Borkmann <=