help-make
[Top][All Lists]
Advanced

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

Re: Feature idea: required version flag


From: Stephan Beal
Subject: Re: Feature idea: required version flag
Date: Tue, 4 Nov 2008 06:22:40 +0100

On Mon, Nov 3, 2008 at 4:24 PM, Greg Chicares <address@hidden> wrote:
> On 2008-11-03 13:46Z, Stephan Beal wrote:
>>
>> i know we've discussed the topic of "how to check if the user is
>> running Make version XYZ or higher" before, but i just had another
>> idea for helping to solve this...
>
> What's wrong with the solutions already discussed?

They're quite verbose.

> If you don't want to write the test in a makefile, then run
> `make --version` and parse the output; you could write a wrapper
> script to do that.

The output isn't in a uniform format, so the parsing isn't as trivial.
A wrapper script would be platform-specific,

>> In this invokation, make would refuse to run if its version is less
>> than 3.80. If its an older make, it would probably puke on the unknown
>> -R flag and die anyway, so we're protected either way.
>
> How would you distinguish that mode of failure from other modes?

i see no need to differentiate. ?

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




reply via email to

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