help-make
[Top][All Lists]
Advanced

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

Re: How to check make version inside a makefile?


From: Greg Chicares
Subject: Re: How to check make version inside a makefile?
Date: Sun, 09 Apr 2006 17:45:58 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

On 2006-4-9 16:14 UTC, Alexandre Girao wrote:
> 
>   A want to verify the make version inside a makefile, i think i can
> do it calling $(MAKE) and verifying the output, but i don't know if
> this is the best approach. Did someone do something like this?

You can test $(MAKE_VERSION), which was added in Version 3.69
(late 1993, judging from the ftp listing) according to 'NEWS'.

On a related note, I've been using this:

  ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81)))
    # stuff that requires make-3.81 or higher
  endif

and would be glad to learn a clearer method.




reply via email to

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