bug-make
[Top][All Lists]
Advanced

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

Re: Tail call elimination


From: Tim Murphy
Subject: Re: Tail call elimination
Date: Mon, 18 May 2020 19:11:10 +0100

I have often wanted to auto generate targets with progressive numbers to ensure uniqueness or count the number of times a particular macro is used and most especially to compare two numbers to see if they are numerically greater, less or equal.

Example: generating rules from potentially very long lists of targets - you can end up with a list that is longer than even the generous limit for command lines on Linux and much too long for Windows so if you can do arithmetic you can chop the list into sizes that can be dealt with.   Doing it with 'x' es to represent numbers as in the GMSL was gross.

Regards,

Tim

On Mon, 18 May 2020, 18:57 Pete Dietl, <address@hidden> wrote:
> It should not be necessary for the use-cases of make

I assert that arithmetic functionality does have use-cases in Make.
Beyond building, I use Make for packaging my software and running tests.
I often find that it would be useful to perform version comparisons
and other simple packaging things.

I sometimes get into scenarios in more complex Makefiles where I want
to perform sanity checks on versions that users pass in via
environmental variables and the like.


reply via email to

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