aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/releases.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/guide/releases.asciidoc')
-rw-r--r--doc/src/guide/releases.asciidoc19
1 files changed, 9 insertions, 10 deletions
diff --git a/doc/src/guide/releases.asciidoc b/doc/src/guide/releases.asciidoc
index 68174b3..a3bdb10 100644
--- a/doc/src/guide/releases.asciidoc
+++ b/doc/src/guide/releases.asciidoc
@@ -7,8 +7,15 @@ https://erlware.github.io/relx/[Relx website] for more information.
=== Setup
-Erlang.mk will create a release if it detects a Relx configuration
-file in the '$(RELX_CONFIG)' location. This defaults to
+First, `relx` must be added in the dependencies of your
+project. You can add it to `REL_DEPS` so that it is fetched
+whenever you need to build the release:
+
+[source,erlang]
+REL_DEPS = relx
+
+Then, you need to create a 'relx.config' file in the
+'$(RELX_CONFIG)' location. This defaults to
'$(CURDIR)/relx.config'. You can override it by defining
the variable before including Erlang.mk:
@@ -29,14 +36,6 @@ RELX_CONFIG = $(CURDIR)/relx.dev.config
endif
----
-Relx does not need to be installed. Erlang.mk will download
-and build it automatically.
-
-The Relx executable will be saved in the '$(RELX)' file. This
-location defaults to '$(CURDIR)/relx' and can be overriden.
-
-// @todo You can use a custom location by ???
-
=== Configuration
You can specify additional Relx options using the `RELX_OPTS`