Analyzing Our New Build System

Now let's look at what we put into those two simple files, beginning with the top-level file (shown in Example 5-2).

Example 5-2. The top-level file contains only a subdirectory reference.


This single line of text tells Automake several things about our project:

  • One or more subdirectories contain makefiles to be processed in addition to this file.[71]

  • Directories in this space-delimited list should be processed in the order specified.

  • Directories in this list should be recursively processed for all primary targets.

  • Directories in this list should be treated as part of the project distribution, unless otherwise specified.

As with most Automake constructs, SUBDIRS ...

Get Autotools now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.