|
@@ -14,11 +14,14 @@ $(if $(filter-out -Werror,$1),\
|
|
|
$(shell echo $1 | cut -b 2-)))
|
|
|
endef
|
|
|
|
|
|
+define compat_erlc_opts_to_list
|
|
|
+ [$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))]
|
|
|
+endef
|
|
|
+
|
|
|
define compat_rebar_config
|
|
|
{deps, [$(call comma_list,$(foreach d,$(DEPS),\
|
|
|
{$(call dep_name,$d),".*",{git,"$(call dep_repo,$d)","$(call dep_commit,$d)"}}))]}.
|
|
|
-{erl_opts, [$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$(ERLC_OPTS)),\
|
|
|
- $(call compat_convert_erlc_opts,$o)))]}.
|
|
|
+{erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}.
|
|
|
endef
|
|
|
|
|
|
$(eval _compat_rebar_config = $$(compat_rebar_config))
|