Browse Source

Make the version warning less repetitive

Loïc Hoguin 6 years ago
parent
commit
e6a347a451
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/core.mk

+ 2 - 2
core/core.mk

@@ -22,11 +22,11 @@ ERLANG_MK_WITHOUT =
 
 # Make 3.81 and 3.82 are deprecated.
 
-ifeq ($(MAKE_VERSION),3.81)
+ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.81)
 $(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
 endif
 
-ifeq ($(MAKE_VERSION),3.82)
+ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.82)
 $(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
 endif