On Tue, 2008-07-22 at 15:47 +0900, Aditya Kher wrote:
> case_%:CASE_DIR= /somewhere/case_%
> 
> case_%:
>       @echo "The case directory is ${CASE_DIR}"

pattern-specific variables don't work like that: they don't have pattern
replacement capability.

Why don't you just say:

CASE_DIR = /somewhere/case_$*

case_%:
        @echo "The case directory is ${CASE_DIR}"

?  The $* variable matches the pattern, and since you use "=" instead of
":=" the right-hand side is not evaluated until it's used inside the
recipe.

See the GNU make manual for details on these.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to