bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What about the name of the second prerequisite?


From: 積丹尼 Dan Jacobson
Subject: Re: What about the name of the second prerequisite?
Date: Sat, 15 Jun 2019 19:14:01 +0800

OK, on (info "(make) Automatic Variables") has
after
'$<'
     The name of the first prerequisite.  If the target got its recipe
     from an implicit rule, this will be the first prerequisite added by
     the implicit rule (*note Implicit Rules::).
add:
     To get the name of the second etc. prerequisite, use e.g., $(word 2,$+).

Thanks Sam. We would have never guessed (that is was safe to recommend.)
(Maybe elaborate if it is safe to use other than $+ too.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]