diff options
-rw-r--r-- | core/kerl.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/kerl.mk b/core/kerl.mk index 771ad41..a6b45d7 100644 --- a/core/kerl.mk +++ b/core/kerl.mk @@ -48,6 +48,10 @@ distclean-kerl: # Allow users to select which version of Erlang/OTP to use for a project. +ifneq ($(strip $(LATEST_ERLANG_OTP)),) +ERLANG_OTP := $(notdir $(lastword $(sort $(wildcard $(KERL_INSTALL_DIR)/*[^-native])))) +endif + ERLANG_OTP ?= ERLANG_HIPE ?= |