Follow-up Comment #4, bug #27047 (project make):
The failure you are reporting is actually documented behavior; the
documentation for target-specific variables says:
As with automatic variables, these values are only available within the
context of a target's command script (and in other
Follow-up Comment #3, bug #27047 (project make):
You can get the desired behavior using the second expansion feature (note
$$):
.SECONDEXPANSION:
all:test1001.out
foo:
@echo making foo
test1%.out: TEST=foo
test%.out: $${TEST}
@echo making test$*.out with
URL:
http://savannah.gnu.org/bugs/?27047
Summary: Difficulties defining prerequisites for pattern
targets.
Project: make
Submitted by: walton
Submitted on: Fri 17 Jul 2009 10:18:57 AM GMT
Severity: 3 - Normal