aboutsummaryrefslogtreecommitdiffstats
path: root/core/erlc.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2016-10-20 16:33:22 +0200
committerLoïc Hoguin <[email protected]>2016-10-23 21:08:12 +0200
commit10ffd2d2ee7bb22a59f1ff8a0a35c63e2696bc6b (patch)
treecc64416c95b1d9d81c067efd4192da6b4a2a4b8c /core/erlc.mk
parent4f5548d226f8efe21e253fd1da1eb1b3754571f8 (diff)
downloaderlang.mk-10ffd2d2ee7bb22a59f1ff8a0a35c63e2696bc6b.tar.gz
erlang.mk-10ffd2d2ee7bb22a59f1ff8a0a35c63e2696bc6b.tar.bz2
erlang.mk-10ffd2d2ee7bb22a59f1ff8a0a35c63e2696bc6b.zip
Support PROJECT_APP_EXTRA_KEYS to add keys to the .app file
This allows to add standard keys which do not have a corresponding `PROJECT_` Makefile variable, as well as non-standard keys.
Diffstat (limited to 'core/erlc.mk')
-rw-r--r--core/erlc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index 71068ef..d2fd88b 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -68,7 +68,7 @@ define app_file
{modules, [$(call comma_list,$(2))]},
{registered, []},
{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]},
- {env, $(subst \,\\,$(PROJECT_ENV))}
+ {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
]}.
endef
else
@@ -81,7 +81,7 @@ define app_file
{registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS))]},
{mod, {$(PROJECT_MOD), []}},
- {env, $(subst \,\\,$(PROJECT_ENV))}
+ {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
]}.
endef
endif