Sunday, October 12, 2008

Automated build with Autotools

Automake, Autoconf, Libtool - simply Autotools...

Quick way to start autotools

Programmer's command sequence:

autoreconf --install --force
make clean

builds the configuration scripts by calling the sequence of particular autotools commands. The advantage is that we do not have to remember the whole sequence
and we do it in one simple command.

force forces the autoreconf to rebuild the configuration even if it already exists.

make clean cleans up build environment

The autoreconf command supplies following sequence
libtoolize --force
automake --foreign --add-missing

User's command sequence:

./configure --prefix=/usr/local
make check # not neccessary, just a test
DESTDIR=/tmp/package make install

AutoBook book for Auto* Libtool, Gettext, ... (latest)
AutoTools for beginners - quick intro
Wikipedia: GNU build system - short description

No comments: