I've had good success with SCons. It's built with Python and the build scripts are actually Python scripts themselves, which gives a great deal of expressive power. From the web site:
SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic
Makeutility with integrated functionality similar toautoconf/automakeand compiler caches such asccache. In short, SCons is an easier, more reliable and faster way to build software.