CompilingVariousBuildDirs

While developing for maemo or even other platforms it's a common requirement to build with various configure parameters (like <del>enable-debug) and even platforms (one build for ARM, other for i686). If you're using software that uses autoconf, that's possible using </del>srcdir:

mkdir build-$(uname -m)
cd build-$(uname -m)

/path/to/srcdir/configure --srcdir=/path/to/srcdir
make

Where build-$(uname -m) is our build-directory (build-i686, build-arm, ...), every binary and Makefiles will be put there.

/path/to/srcdir

will remain clean and can be used by another build dirs.

Note: If your builds depends on generated files, like libname.la, use $(top_builddir). People often mis-uses $(top_srcdir), which is wrong!