From e3ca0c17351e0b82b7127919c842295df1363647 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
Date: Thu, 9 Jun 2016 12:51:24 +0200
Subject: Update user guide
---
guide/building.html | 4 ++++
guide/getting_started.html | 4 ++--
guide/index.html | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
(limited to 'guide')
diff --git a/guide/building.html b/guide/building.html
index 1fb3339..0afc74b 100644
--- a/guide/building.html
+++ b/guide/building.html
@@ -93,6 +93,10 @@ your situation.
2.2. Downloading Erlang.mk
At the time of writing, Erlang.mk is unlikely to be present
-in your Erlang distribution, or even in your OS packages.
The next step is therefore to download it:
$ wget https://raw.githubusercontent.com/ninenines/erlang.mk/master/erlang.mk
Or:
$ curl https://raw.githubusercontent.com/ninenines/erlang.mk/master/erlang.mk
Alternatively, just click on this link.
Make sure you put the file inside the folder we created previously.
2.3. Getting started with OTP applications
An OTP application is an Erlang application that has a supervision
+in your Erlang distribution, or even in your OS packages.
The next step is therefore to download it:
$ wget https://erlang.mk/erlang.mk
Or:
$ curl https://erlang.mk/erlang.mk
Alternatively, just click on this link.
Make sure you put the file inside the folder we created previously.
2.3. Getting started with OTP applications
An OTP application is an Erlang application that has a supervision
tree. In other words, it will always have processes running.
This kind of project can be automatically generated by Erlang.mk.
All you need to do is use the bootstrap
target:
$ make -f erlang.mk bootstrap
Something similar to the following snippet will then appear
on your screen:
git clone https://github.com/ninenines/erlang.mk .erlang.mk.build
@@ -121,7 +121,7 @@ manually.Erlang.mk is very easy to setup: all that you need to do is to
create a folder, put Erlang.mk in it, and write a one line
Makefile containing:
include erlang.mk
For a step by step:
$ mkdir hello_joe
$ cd hello_joe
-$ curl https://raw.githubusercontent.com/ninenines/erlang.mk/master/erlang.mk
+$ curl https://erlang.mk/erlang.mk
$ echo "include erlang.mk" > Makefile
$ make
From that point onward you can create an src/
folder or start
using templates.