From 7f7db5d1e6a442aee5dba4aa98dd0594f5f3513d Mon Sep 17 00:00:00 2001 From: jdamanalo Date: Mon, 8 May 2023 23:45:43 +0800 Subject: Support optional applications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Loïc: Added more info to guide. --- doc/src/guide/deps.asciidoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/src/guide') diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc index e5dda80..c46dce6 100644 --- a/doc/src/guide/deps.asciidoc +++ b/doc/src/guide/deps.asciidoc @@ -132,6 +132,18 @@ target `deps::` before including 'erlang.mk', for example: [source,make] deps:: $(CURDIR)/deps/triq +Sometimes dependencies are allowed to be missing. However, your application +may depend on an optional application being started. To ensure that an +optional dependency is started before your application, the variable +`OPTIONAL_DEPS` may be used: + +[source,make] +OPTIONAL_DEPS = quicer + +The top-level project can then decide whether to include this +application by adding it to its `BUILD_DEPS` and including +it in the release dependencies. + ==== Modifying the dependency source or version By default, Erlang.mk will look into its package index to -- cgit v1.2.3