Chapter 10Compiling and Running Your Program
In the previous chapters, we didn’t say much about compiling and running your programs—we just used the Erlang shell. This is fine for small examples, but as your programs become more complex, you’ll want to automate the process in order to make life easier. That’s where makefiles come in.
There are actually three different ways to run your programs. In this chapter, we’ll look at all three so you can choose the best method for any particular occasion.
Sometimes things will go wrong: makefiles will fail, environment variables will be wrong, and your search paths will be incorrect. We’ll help you deal with these issues by looking at what to do when things go wrong.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access