O'Reilly logo

Autotools by John Calcote

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Item 2: Implementing Recursive Extension Targets

An extension target is a make target that you write to accomplish some build goal that Automake doesn't automatically support. A recursive extension target is one that traverses your project directory structure, visiting every Makefile.am file in your Autotools build system and giving each one the opportunity to do some work when the extension target is made.

When you add a new top-level target to your build system, you have to either tie it into an existing Automake target, or add your own make code to the desired target that traverses the subdirectory structure provided by Automake in your build system.

The SUBDIRS variable is used to recursively traverse all subdirectories of the current directory, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required