On Tue, 24 Nov 2009, Paul Smith wrote: > On Tue, 2009-11-24 at 22:09 -0600, Peng Yu wrote: > > $< gives the first prerequisite. I'm wondering how to get the 2nd, > > 3rd, ..., prerequisite. > > Look up the "word" function in the GNU make manual (combined with $^)
while, technically, that's a correct answer, it's also worth suggesting that, if you truly need to distinguish between your prerequisites that way, there's possibly something wrong with your design. prereqs should, in an ideal world, simply represent a set of unordered dependencies. if you're insisting that they have a particular order and you want to examine that order, i think you're just asking for trouble. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== _______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make