From b3d3d7c3d26cd9b000d4eacf99d85d4c2f694ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 3 Apr 2016 17:49:56 +0200 Subject: Add a "getting started from scratch" section --- doc/src/guide/getting_started.asciidoc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'doc') diff --git a/doc/src/guide/getting_started.asciidoc b/doc/src/guide/getting_started.asciidoc index ef2f6e8..cdb3bfe 100644 --- a/doc/src/guide/getting_started.asciidoc +++ b/doc/src/guide/getting_started.asciidoc @@ -184,6 +184,33 @@ Eshell V7.0 (abort with ^G) Simple as that! +=== Getting started from scratch + +If you already have an application, or you want to have full +control over what files will be created, you can setup Erlang.mk +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: + +[source,make] +include erlang.mk + +For a step by step: + +[source,bash] +---- +$ mkdir hello_joe +$ cd hello_joe +$ curl https://raw.githubusercontent.com/ninenines/erlang.mk/master/erlang.mk +$ echo "include erlang.mk" > Makefile +$ make +---- + +From that point onward you can create an `src/` folder or start +using templates. + === Using spaces instead of tabs Erlang.mk defaults to tabs when creating files from templates. -- cgit v1.2.3