From 43533ac6bc2112beaa229bbb3fe5cd73a116ecda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Tue, 23 Jan 2024 13:43:10 +0100
Subject: Update instructions for releases

---
 doc/src/guide/releases.asciidoc | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

(limited to 'doc/src/guide/releases.asciidoc')

diff --git a/doc/src/guide/releases.asciidoc b/doc/src/guide/releases.asciidoc
index 892e341..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 overridden.
-
-// @todo You can use a custom location by ???
-
 === Configuration
 
 You can specify additional Relx options using the `RELX_OPTS`
-- 
cgit v1.2.3

