aboutsummaryrefslogtreecommitdiffstats
path: root/core/kerl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/kerl.mk')
-rw-r--r--core/kerl.mk4
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 ?=