ArticleslgStudy

computer science

Automake

Automake is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Automake rather than just read about it. In short: GNU Automake is a software development tool to automate parts of the compilation process. It eases common compilation problems.

Automake — main illustration
Automake — illustration

Key takeaways

  • Automake belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Automake to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Automake from memory before moving on to harder problems.

Reference excerpt

GNU Automake is a software development tool to automate parts of the compilation process. It eases common compilation problems. For example, it points to needed dependencies. It automatically generates one or more Makefile.in from files called Makefile.am. Each Makefile.am contains, among other things, useful variable definitions for the compiled software, such as compiler and linker flags, dependencies and their versions, etc. The generated "Makefile.in"s are portable and compliant with the Makefile conventions in the GNU Coding Standards, and may be used by configure scripts to generate a working Makefile. The Free Software Foundation maintains automake as one of the GNU programs, and as part of the GNU build system. It is used to build several GNU applications and libraries, such as GTK, as well as non-GNU software such as XCircuit.

History Automake was created by David MacKenzie in September 1994, who had previously developed Autoconf. He intended to create a shell script for generating GNU standards-compliant Makefile.in files from simpler Makefile.am descriptions. Development initially stalled after a month, but was restarted in late 1995 and the tool was rewritten in Perl. The first stable release, Automake 1.0, appeared on 28 May 1996, by which time the project had grown to more than 3,000 lines of code and included facilities such as distribution checking and preliminary GNU Libtool support. Automake 1.2, released in 1997, introduced aclocal, AM_INIT_AUTOMAKE, conditionals, and full Libtool support. In 2002 maintenance passed from Tromey to Alexandre Duret-Lutz. Development has continued as part of the GNU Project, with Automake remaining closely integrated with Autoconf and forming one of the principal components of the GNU build system, colloquially referred to as GNU Autotools. Starting 2020, maintenance passed to Jim Meyering, and subsequently in 2026, to Kamila Szewczyk.

Process

Automake aims to allow the programmer to write a makefile in a higher-level language, rather than having to write the whole makefile manually. In simple cases, it suffices to give:

A line that declares the name of the program to build A list of source files A list of command-line options to be passed to the compiler (for example, in which directories header files will be found) A list of command-line options to be passed to the linker (which libraries the program needs and in what directories they are to be found) Automake also takes care of automatically generating the dependency information, so that when a source file is modified, the next invocation of the make command will know which source files need to be recompiled. If the compiler allows it, Automake tries to make the dependency system dynamic: whenever a source file is compiled, that file's dependencies are updated by asking the compiler to regenerate the file's dependency list. In other words, dependency tracking is a side effect of the compilation process. This attempts to avoid the problem with some static dependency systems, where the dependencies are detected only once when the programmer starts working on the project.

Design Automake is written in Perl and must be used with GNU Autoconf. Automake contains the following commands:

aclocal automake aclocal, however, is a general-purpose program that can be useful to autoconf users. The GNU Compiler Collection (GCC), for example, uses aclocal even though its makefile is hand written. Like Autoconf, Automake is not entirely backward compatible. For example, a project created with automake 1.13 will not necessarily work with automake 1.14.

See also

configure script – Shell script for generating build configuration files on a Unix-like environment Make (software) – Software build automation tool

References

Sources

External links Official website Online version of The Goat Book aka Autobook Archived 2010-12-20 at the Wayback Machine Combined manual for Automake and Autoconf Autotoolset home page

Illustrations

Automake illustration
Automake: Flow diagram of autoconf and automake
Flow diagram of autoconf and automake

Worked examples

Example 1 — a first encounter with Automake

Start with the simplest possible case. Write down what Automake claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Automake before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Automake ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Automake

In research
Automake appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Automake in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Automake is common in secondary-school and first-year university syllabi. It links to neighbouring topics Build automation, Compiling tools, Cross-platform free software, so understanding it makes those chapters shorter.
In everyday life
Look for Automake outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Automake” →

How to study Automake in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Automake means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Automake out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Automake in simple terms?

GNU Automake is a software development tool to automate parts of the compilation process. It eases common compilation problems.

Why does Automake matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Automake?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Automake.

Tags

  • Build automation
  • Compiling tools
  • Cross-platform free software
  • Free software programmed in Perl
  • GNU Project software
  • Software using the GNU General Public License

Keep exploring