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 _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make