This is a report for make-3.78.1

The following use of a target specific variable loses its value. If
you issue the command "make r1", VALUE is set to rule1 and rule1 is
executed through the value of VALUE. If you issue the command "make
r2", VALUE is set to rule2, but rule1 is still executed even though
the value of VALUE is rule2.

# Begin Makefile
VALUE = rule1
r2: VALUE = rule2

rule1 rule2:
        @ echo "$@ executed"

show_value:
        @ echo "VALUE = $(VALUE)"

r1 r2: show_value $(VALUE)
# End Makefile

-- 
Darren Hiebert <[EMAIL PROTECTED]>
XonTech, Inc.  (256) 971-2977

Reply via email to