18.3. Automatic Dependency Tracking

Keeping track of dependencies for a large program is tedious and error-prone. Many edits require the programmer to update dependencies; for some changes, however, such as adding a #include to an existing header, the change is large enough that he just refuses (or does it incorrectly). To fix this problem, Automake supports automatic dependency tracking.

The implementation of automatic dependency tracking in Automake 1.4 requires gcc and GNU make. These programs are required only for maintainers; the 'Makefile's generated by make dist are completely portable. If you can't use gcc or GNU make for your project, you are just out of luck; you have to disable dependency tracking.

Automake 1.5 will include a completely ...

Get GNU Autoconf, Automake, and Libtool 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.