From 4769412daaff2be53cb7d7391d0a196acb6346c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 14 Oct 2013 16:05:19 +0200 Subject: erlang.mk now has built-in support for relx --- guide/getting_started.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'guide/getting_started.md') diff --git a/guide/getting_started.md b/guide/getting_started.md index 3143a7f..4d3e7ab 100644 --- a/guide/getting_started.md +++ b/guide/getting_started.md @@ -44,6 +44,7 @@ hello_erlang/ hello_erlang_sup.beam hello_handler.beam _rel/ + relx ``` As you can probably guess, the `.app.src` file end up becoming @@ -271,14 +272,11 @@ $ make ``` That's not all however, as we want to create a working release. -For that purpose we will need `relx`. You can download it directly -[from Github](https://github.com/erlware/relx). After downloading -it, you will need to build it using `make`, which should give -you a `relx` executable that you can then put in your `$PATH`. -You only need to do this once. - -We are almost ready to build the release. All that's left is -the `relx.config` file! In it, we only need to tell `relx` that +For that purpose, we need to create a `relx.config` file. When +this file exists, `erlang.mk` will automatically download `relx` +and build the release when you type `make`. + +In the `relx.config` file, we only need to tell `relx` that we want the release to include the `hello_erlang` application, and that we want an extended start script for convenience. `relx` will figure out which other applications are required @@ -295,7 +293,7 @@ version, and the applications to be included. We can now build and start the release. ``` bash -$ relx +$ make $ ./_rel/bin/hello_erlang console ``` -- cgit v1.2.3