aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/getting_started.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-04-03 17:49:56 +0200
committerLoïc Hoguin <[email protected]>2016-04-03 17:49:56 +0200
commitb3d3d7c3d26cd9b000d4eacf99d85d4c2f694ff1 (patch)
treecb600262dc7bb9518af26d78ee340fbcb0b94e6f /doc/src/guide/getting_started.asciidoc
parent35351a5e0f8c75bb3dd472cb8828548f6facd04e (diff)
downloaderlang.mk-b3d3d7c3d26cd9b000d4eacf99d85d4c2f694ff1.tar.gz
erlang.mk-b3d3d7c3d26cd9b000d4eacf99d85d4c2f694ff1.tar.bz2
erlang.mk-b3d3d7c3d26cd9b000d4eacf99d85d4c2f694ff1.zip
Add a "getting started from scratch" section
Diffstat (limited to 'doc/src/guide/getting_started.asciidoc')
-rw-r--r--doc/src/guide/getting_started.asciidoc27
1 files changed, 27 insertions, 0 deletions
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.