[prev] [index] [next]

The make Command

The make command overcomes these problems by:
  • documenting intra-module dependencies
  • automatically keeping track of changes
make works from a file called Makefile   (or makefile)

A Makefile contains a sequence of rules like:

target : source1 source2 ...
        commands to create target from sources

Beware: each command is preceded by a single tab char.

Don't use the clipboard to copy Makefiles