in reply to The dreadful Makefiles

You could use the CPAN Make module, which knows how to parse makefiles.