Automatic variable $ doesnt increment to the next source file while compiling

2011-07-19 Thread Rahul
Hi, I am using make (version 3.81) for compilation. However the automatic variable $ doesnt increment as expected and uses the 1st source file itself for compiling all the objects. However the other automatic variable $@ seems to be working fine. Regards Rahul

Re: Automatic variable $ doesnt increment to the next source file while compiling

2011-07-19 Thread Paul Smith
On Tue, 2011-07-19 at 15:22 +0530, Rahul wrote: I am using make (version 3.81) for compilation. However the automatic variable $ doesnt increment as expected and uses the 1st source file itself for compiling all the objects. There's not much help we can give based on this description. Please

RE: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread Martin Dorey
Putting OP's reply on the record. From: Rob Holbert [mailto:robholb...@gmail.com] Sent: Tuesday, July 19, 2011 04:49 To: Martin Dorey Subject: Re: $(sort) - what is lexical order? (was RE: Follow-up) Wow, Just putting your sources in order yourself will be much

RE: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread Paul Smith
There is no standard definition of lexical order that I'm aware of that means only, and exactly, sorted according to the current locale collation definition. The free dictionary defines it as: the arrangement of a set of items in accordance with a recursive algorithm, such as the

Re: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread David Boyce
On Tue, Jul 19, 2011 at 3:00 PM, Paul Smith psm...@gnu.org wrote: I agree that the manual should document the fact that the sort function does not sort according the current LC_COLLATE value but instead always uses the standard ASCII (or LC_COLLATE=C) order. But I will not say that it

Re: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread Edward Welbourne
GNU make uses the standard C runtime function qsort(3) to perform its sorting, with a comparison function of the standard C runtime function strcmp(). ... The builtin sort function DOES sort. It may not sort the way you would prefer, but it sorts in a standard, repeatable, well-defined way

RE: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread Martin Dorey
Why not trivially s/lexical/ASCII/ on the affected line in the manual? Because that could mislead someone who uses non-ASCII characters? How about: Index: doc/make.texi === RCS file: /sources/make/make/doc/make.texi,v retrieving

Re: $(sort) - what is lexical order? (was RE: Follow-up)

2011-07-19 Thread Paul Smith
Please don't reply only to me: discussions belong on the mailing lists. On Tue, 2011-07-19 at 15:32 -0400, Rob Holbert wrote: The key in that definition is depends on their first letter, not the capitalization of their first letter. But in any event, if you don't have a clear definition for