Theres a slight problem here.. It doesn't account for dependencies.. (ie running in a dir with DBD-* and DBI* as sub dirs will compile the DBDs first, and DBI after, which doesn't make a lot of sense..)
I guess fixing this will make it significantly more compilcated though.