|
From: | Bram |
Subject: | Using the target of a pattern rule as a prerequisite |
Date: | Thu, 03 Jun 2004 16:53:06 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
Hi help list,I was wondering how to use the target of a pattern rule to generate a prerequisite using a function.
Something like this: %.cc: $(dir $@) echo "Pre:" $^ Which generates "Pre: " Also: %.cc: $(dir %.cc) echo "Pre:" $^ Doesn't work as I'd expect. Any way to make this work? Thanks, Bram
[Prev in Thread] | Current Thread | [Next in Thread] |