[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug using computed variable names together with call
From: |
Onno Garms |
Subject: |
Bug using computed variable names together with call |
Date: |
Tue, 2 Jul 2002 08:22:02 +0200 (MEST) |
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 <address@hidden>.
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 (address@hidden)
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 using computed variable names together with call,
Onno Garms <=