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.

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.