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.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make