In these exercises you learn to use the Makefile abstractions provided
by automake applied to the interpreter package. Make a new version of
the package to do these exercises with (i.e., make a tag for the trunk after
Online documentation for automake is available in the info pages (command
A simple example of the use of automake is provided in the following package:
Unpack and build it using the following commands:
gtar zxf hello-4.0.tar.gz
Study the files in the package to see how automake is used.
Note that the Makefile.in is generated from Makefile.am and that routine targets
for deployment (install, dist, ...) are now generated by automake from
Have a look at Makefile.in to get an impression of the complexity of a complete Makefile.in.
The reconf script calls the relevant autotools.
The hello.spec file for RPM uses variables to refer to the installation target directories
to make it more generic.
Now change the interpreter package to make use of automake.
configure.in to use automake (
- Promote the
Makefile.in from the previous exercise to a
Makefile.am. Make use of automake macro definitions such as for
bin_PROGRAMS to abbreviate the
- Remove the
and make sure that they are generated by automake.
- (Optional.) Turn the package into a hierarchical directory structure with
config/ subdirectories. Distribute the code over the subdirectories as appropriate. Extend the configure.in and Makefile.am to support the new structure.