help-make
[Top][All Lists]
Advanced

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

Re: Is there a way to count something in make?


From: Stephan Beal
Subject: Re: Is there a way to count something in make?
Date: Sun, 2 May 2010 13:13:40 +0200

On Sun, May 2, 2010 at 12:02 PM, Martin Mensch <address@hidden> wrote:
I am looking for a way to count something in make.
I thing about a variable set to a string with a numeric meaning, say
COUNT := 0
and then have a function like this
count := $(incrementbyone $(COUNT))
 
Is there something like this?

The "Make Standard Library":

http://gmsl.sourceforge.net/

can do that and many related operations. (Search that page for "int_plus".)

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

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