See also these things. But memoize.py looks more flexible; building anything.
ccache - https://ccache.samba.org
fastbuild - http://fastbuild.org
Also for the besodden remaining ClearCase users, they have nice feature which seems rarely spoken of these days: clearmake and wink-ins.