|
From: | Justin Nicolaides |
Subject: | GNU make v3.79.1 bug with echo-suppressed commands in defined variables |
Date: | Mon, 23 Sep 2002 15:21:30 -0400 |
I’ve run into a problem using ‘@’ to suppress echoing for commands in a “define” variable. I am using make version 3.79.1 from the Cygwin package on Windows XP SP1. The problem is that once make has executed a line with an @, echoing is suppressed for all subsequent commands, regardless of whether they have an @ or not.
Here is an example makefile to replicate the problem:
define CMD true 1 $@ true 2 $@ @true 3 $@ endef
all: 1.blah 2.blah
%.blah: $(CMD)
Here is the output:
99 ~/m>cmake -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i686-pc-cygwin 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>.
100 ~/m>cmake -f b true 1 1.blah true 2 1.blah 101 ~/m>
If I run version 3.74 (from Wind River Systems’ Tornado environment), I get the expected result:
101 ~/m>make -v GNU Make version 3.74 (vpath+), by Richard Stallman and Roland McGrath. Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95 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.
102 ~/m>make -f b true 1 1.blah true 2 1.blah true 1 2.blah true 2 2.blah 103 ~/m>
-- Justin
|
[Prev in Thread] | Current Thread | [Next in Thread] |