Contents|Index|Previous|Next
How to run make

A makefile that says how to recompile a program can be used in more than one way. The simplest use is to recompile every file that is out of date.

See the following documentation for more discussion.

Usually, makefiles are written so that if you run make with no arguments, it does just that.

However, you might want to update only some of the files; you might want to use a different compiler or different compiler options; you might want just to find out which files are out of date without changing them. By giving arguments when you run make, you can do any of these things and many others.

The exit status of make is always one of the following three values.


Top|Contents|Index|Previous|Next