bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with target specific variable and double colon rule


From: marla dahlin
Subject: problem with target specific variable and double colon rule
Date: Fri, 04 Jan 2002 22:06:29 -0600

Hi,
 
I'm using make 3.79.1 on Windows 2000:
 
output of:
make -version
 
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-pc-msdosdjgpp
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>.
 
To reproduce behavior:
 
Makefile
--------------------
 
a::
        echo 1
        echo $(TEST)
a::
        echo 2
        echo $(TEST)
 
testa: TEST=hi
testa: a
 
OUTPUT of
make testa
--------------------------
 
echo 1
1
echo hi
hi
echo 2
2
echo
 
I expected:
echo 1
1
echo hi
hi
echo 2
2
echo hi
hi
 
Maybe I'm just expecting the wrong thing.....  Anyway figured I'd ask.
Thanks in advance.
-Marla


Join the world’s largest e-mail service with MSN Hotmail. Click Here

reply via email to

[Prev in Thread] Current Thread [Next in Thread]