Next: , Previous: , Up: Format of Makefile.am   [Contents][Index]

5.1.2 Rules in Makefile.am

Rules follow the same syntax as rules in Makefiles. See Writing Rules in GNU make. These rules are copied to the output Makefile.in. This allows you to provide arbitrary functionality for users of the generated Makefiles. 2

A rule defined in Makefile.am overrides any such rule of a similar name that would be automatically generated by automake. Although this is a supported feature, it is not recommended.

See also Portable Make Programming.

Footnotes

(2)

For instance, the Automake distribution includes a non-standard rule for the git-dist target, which the Automake maintainer uses to make distributions from the source control system.