From 33728ad57de0799c32cad1dc3ce642e6b2476d79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
Date: Mon, 14 Dec 2015 18:45:36 +0100
Subject: Update user guide
---
guide/ch01.html | 4 +++-
guide/ch08.html | 12 +++++++++---
guide/index.html | 2 +-
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/guide/ch01.html b/guide/ch01.html
index 8815cd6..da70bee 100644
--- a/guide/ch01.html
+++ b/guide/ch01.html
@@ -64,7 +64,9 @@ post-installation setup:
1.2.3. Installing the required MSYS2 packages
After following these instructions, you can install GNU Make,
Git and any other required softwares. From an MSYS2 shell,
you can call pacman
directly:
$ pacman -S git make
You can use pacman -Ss
to search packages. For example,
-to find all packages related to GCC:
$ pacman -Ss gcc
You can also run commands under the MSYS2 environment from
+to find all packages related to GCC:
$ pacman -Ss gcc
If you are going to compile C/C++ code, you will need to
+install this package, as Erlang.mk cannot use the normal
+"gcc" package:
$ pacman -S mingw-w64-x86_64-gcc
You can also run commands under the MSYS2 environment from
the Windows command line or batch files. This command will
install GNU Make and Git:
C:\> C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git make"
You can use similar bash
commands if you need to run programs
inside the MSYS2 environment from a batch file.
While most of the basic functionality will just work, there are
diff --git a/guide/ch08.html b/guide/ch08.html
index 23f8429..756d96a 100644
--- a/guide/ch08.html
+++ b/guide/ch08.html
@@ -60,9 +60,15 @@ environment detection:
include env.mk
Erlang.mk comes with rules to build both shared libraries and
executables, using the source files it finds in By default, Erlang.mk will create a shared library. To change
this and create an executable instead, put this in your Makefile
-before including Erlang.mk:
Erlang.mk sets appropriate compile and linker flags by default.
+before including Erlang.mk:
The generated file name varies depending on the type of project
+you have (shared library or executable) and on the platform you
+build the project on.
Erlang.mk sets appropriate compile and linker flags by default.
These flags vary depending on the platform, and can of course
be overriden.