Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: duplicate targets in Makefile rule



Zefram (zefram@xxxxxxxx) wrote:
> Adam Spiers wrote:
> >> Not portable: $< does not portably exist
> >
> >*sigh* You learn something every day.  Why is it not meaningful
> >though, out of curiosity?
> 
> There may be many (or no) dependencies in an explicit rule, whereas $<
> is defined (for an implicit rule) to expand to the exactly one dependency.

I see.  I've only ever used GNU make, so I'd unconsciously assumed
that what the info pages say would be true for most makes:

  `$<'
       The name of the first dependency.  If the target got its commands
       from an implicit rule, this will be the first dependency added by
       the implicit rule (*note Implicit Rules::.).



Messages sorted by: Reverse Date, Date, Thread, Author