I maybe a contrarian, but i really hate custom made build tools. They contain a lot of "black magic"(no documentation nor community help) and are difficult to debug and extend. I think it is much better to stay with standard build tools. Time spent in learning them is well worth it.
In your case i might have gone with SCons+distcc+ccache rather than a custom made one.