in reply to Perl from within a makefile

It seems like perl -e 'YOUR_SCRIPT...' should do the trick.