in reply to Differences between CGI and command-line versions of scripts?!?

Perhaps as part of your build utility, you could use the Perl drop-in replacement for GNU make with Perl extensions: make++
  • Comment on make++ -- A better, safer make implementation