On Wed, May 21, 2008 at 12:44:24PM +0200, Peter Stuge wrote:
Here's a hacky rule that will do the check when bash is $SHELL. Please improve it any way you can. Maybe there are some predefined variables with the make version we can use instead?
If people like it I could make a patch.
.PHONY: versioncheck
versioncheck: @ echo GNU make 3.79.1 | \ (read g m v; \ vmaj=$${v/.*}; vaftmaj=$${v#*.}; vmin=$${vaftmaj%%.*}; \ test $$vmaj -lt 3 -o $$vmin -lt 80 && \
..just noticed this logic is incomplete. But you get the idea.
//Peter