Hello, I think I've found a bug in gnu make. My version of gnu make is a bit outdated so I cannot promise that the bug is still there or still not in the list of known bugs. But currently I definitely don't have the time to install a new version of gnu make.
The bug occurs when using computed variable names together with call. I expected gmake to echo "b" twice in the last command. However it echoed an empty string and "b". Computed variable names like in test1 seem not to work together with call while the workarround in test2 works. Short feedback would be appreciated. Sincerely Onno Garms ============================================================= bernays:~...c/test> gmake --version GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for sparc-sun-solaris2.8 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to <[EMAIL PROTECTED]>. bernays:~...c/test> cat testmakefile a = b test1 = $($(1)) test2 = $($(shell echo $(1))) all: @echo $(call test1, a) @echo $(call test2, a) bernays:~...c/test> gmake -f testmakefile b bernays:~...c/test> -- Dipl.-Math. Onno Garms ([EMAIL PROTECTED]) Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI) Schloss Birlinghoven, D-53754 Sankt Augustin, http://www.scai.fhg.de Tel. +49 -2241 -14 -2553; Fax +49 -2241 -14 -2656 _______________________________________________ Bug-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-make