hmmm not sure if I understand you so let me know where
I might be going astray...

here is an example showing multiple targets...

x.class y.class z.class : x.java y.java z.java
   javac -g $< 

I guess I understood that the "$<" would match each 
source file that needed to be compiled? 

so commands would be:

   javac -g x.java
   javac -g y.java
   javac -g z.java

if it only matched the first then that would explain
why I got:

   javac -g x.java
   javac -g x.java 

that seems a bit counter-intuitive but I think I
understand you...

now on to the other part that you mentioned... the
"$^" macro, so based on the make line toward the top
of this e-mail, it would match?:

  "$^" = x.java y.java z.java 

so this would produce the following command?:

   javac -g x.java y.java z.java

I would also assume that I could use the "subst" to 
create the package names for each source file?
(that would be quite useful...)


let me know if I understood you correctly...?

thx! 
- richt


--- Greg Chicares <[EMAIL PROTECTED]> wrote:

> On 2006-2-20 17:50 UTC, richard t wrote:
> >  
> > ok the problem that I get is that the macro ($<)
> does
> > not seem to iterate for the
> > different source files
> 
> By 'iterate', do you mean handling the whole list of
> prerequisites?
> 
> '$<' is just the first prerequisite. '$^' contains
> all of them.
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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

Reply via email to