Stupid Newbie Question?

Bernhard Fischer rep.nop at aon.at
Thu May 4 13:50:39 UTC 2006


On Thu, May 04, 2006 at 03:45:35PM +0200, Peter S. Mazinger wrote:
>On Thu, 4 May 2006, Bernhard Fischer wrote:
>
>> On Thu, May 04, 2006 at 02:57:23PM +0200, Peter S. Mazinger wrote:

>> 
>> To be really safe, you should get MAKE_VERSION_MAJOR and
>> MAKE_VERSION_MINOR, i'd say..
>> 
>> MAKE_VERSION_MAJOR:=$(shell echo $(MAKE_VERSION) | cut -d'.' -f1)
>> MAKE_VERSION_MINOR:=$(shell echo $(MAKE_VERSION) | cut -d'.' -f2)
>> $(warning maj='$(MAKE_VERSION_MAJOR)'  min='$(MAKE_VERSION_MINOR)')
>> 
>> then see if maj>3 || (maj>=3 && min >= 80) else bail
>> 
>> cheers,
>> Bernhard
>> 
>> 
>
>do you know how the MAKE_VERSION looks like for 
>experimental/non-release 3.81?

ah, right. it was something like 3.81beta4 or 3.81rc1, iirc, so using
e.g. sed to strip off [^[:digit:]]*$ of minor would be preferable.



More information about the uClibc mailing list