6.1. General Automake Principles

Automake at its simplest turns a file called 'Makefile.am' into a GNU-compliant 'Makefile.in' for use with 'configure'. Each 'Makefile.am' is written according to make syntax; Automake recognizes special macro and target names and generates code based on these.

A few Automake rules differ slightly from make rules:

  • Ordinary make comments are passed through to the output, but comments beginning with '##' are Automake comments and are not passed through.

  • Automake supports include directives. These directives are not passed through to the 'Makefile.in', but instead are processed by automake—files included this way are treated as if they were textually included in 'Makefile.am' at that point. This can be used to add ...

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.