diff --git a/core/main.mk b/core/main.mk index 66a7d597a..f07a7fb9f 100644 --- a/core/main.mk +++ b/core/main.mk @@ -40,17 +40,15 @@ endif # Check for broken versions of make. # (Allow any version under Cygwin since we don't actually build the platform there.) ifeq (,$(findstring CYGWIN,$(shell uname -sm))) -ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9\.].*//") = 3.81)) -ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9\.].*//") = 3.82)) +ifneq (1,$(strip $(shell expr $(MAKE_VERSION) \>= 3.81))) $(warning ********************************************************************************) $(warning * You are using version $(MAKE_VERSION) of make.) -$(warning * Android can only be built by versions 3.81 and 3.82.) +$(warning * Android can only be built by versions 3.81 and higher.) $(warning * see https://source.android.com/source/download.html) $(warning ********************************************************************************) $(error stopping) endif endif -endif # Absolute path of the present working direcotry. # This overrides the shell variable $PWD, which does not necessarily points to