1 Motivation
Understand the workflow of autoconf
and automake
2 Workflow
2.1 Simplified Workflow
Our target is to generate one or several Makefile
, two steps involved:
- you need to supply one
configure.in
(orconfigure.ac
) file which will include targetMakefile
paths list to generate aconfigure
script, commonly, each targetMakefile
corresponds to oneMakefile.am
file. - Then you could use
./configure
command to generate theMakefile
included inconfigure.in
from correspondingMakefile.am
.
The following figure visualize this process:
2.2 Full Workflow
Normally:
- you modify an auto-generated
configure.scan
to getconfigure.{in/ac}
. - to generate
configure
script, you need to generateaclocal.m4
first.
The follw figure shows the full workflow: