[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pattern matching - variable setting
From: |
Aditya Kher |
Subject: |
pattern matching - variable setting |
Date: |
Tue, 22 Jul 2008 15:47:48 +0900 |
How can I do something like this;
For case 1, I need CASE_DIR= /somewhere/case_1
For case 2, I need CASE_DIR=/somewhere/case_2
So I tried following makefile but it doesnot work.
What am I missing?
--------------------------------
%cat Makefile
case_%:CASE_DIR= /somewhere/case_%
case_%:
@echo "The case directory is ${CASE_DIR}"
-----------------------------------
%gmake case_1
The case directory is /somewhere/case_%
--
----
Aditya Kher
email: address@hidden
Web: http://www.kher.org
----
- pattern matching - variable setting,
Aditya Kher <=