|
@@ -67,7 +67,8 @@ define app_file
|
|
{id$(comma)$(space)"$(1)"}$(comma))
|
|
{id$(comma)$(space)"$(1)"}$(comma))
|
|
{modules, [$(call comma_list,$(2))]},
|
|
{modules, [$(call comma_list,$(2))]},
|
|
{registered, []},
|
|
{registered, []},
|
|
- {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]}
|
|
|
|
|
|
+ {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]},
|
|
|
|
+ {env, $(subst \,\\,$(PROJECT_ENV))}
|
|
]}.
|
|
]}.
|
|
endef
|
|
endef
|
|
else
|
|
else
|
|
@@ -79,7 +80,8 @@ define app_file
|
|
{modules, [$(call comma_list,$(2))]},
|
|
{modules, [$(call comma_list,$(2))]},
|
|
{registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
|
|
{registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
|
|
{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]},
|
|
{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]},
|
|
- {mod, {$(PROJECT_MOD), []}}
|
|
|
|
|
|
+ {mod, {$(PROJECT_MOD), []}},
|
|
|
|
+ {env, $(subst \,\\,$(PROJECT_ENV))}
|
|
]}.
|
|
]}.
|
|
endef
|
|
endef
|
|
endif
|
|
endif
|
|
@@ -241,7 +243,7 @@ ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.s
|
|
$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
|
|
$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
|
|
$(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
|
|
$(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
|
|
ifeq ($(wildcard src/$(PROJECT).app.src),)
|
|
ifeq ($(wildcard src/$(PROJECT).app.src),)
|
|
- $(app_verbose) printf "$(subst $(newline),\n,$(subst ",\",$(call app_file,$(GITDESCRIBE),$(MODULES))))" \
|
|
|
|
|
|
+ $(app_verbose) printf '$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES))))' \
|
|
> ebin/$(PROJECT).app
|
|
> ebin/$(PROJECT).app
|
|
else
|
|
else
|
|
$(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
|
|
$(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
|