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



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

Reply via email to