|
@@ -52,7 +52,9 @@ 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 $(filter-out $(KERL_INSTALL_DIR)/OTP_R%,\
|
|
|
+# In some environments it is necessary to filter out master.
|
|
|
+ERLANG_OTP := $(notdir $(lastword $(sort\
|
|
|
+ $(filter-out $(KERL_INSTALL_DIR)/master $(KERL_INSTALL_DIR)/OTP_R%,\
|
|
|
$(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
|
|
|
endif
|
|
|
|