The classic way to handle such a process is to consider the source code (input to the Perl filter) as a new language with a new file suffix. Then you indicate makethat the way to compile the C ++ source file from this new file type is with a Perl script.
For example:
- . .ccp , make .ccp, .cc. .cc, , .ccp .cc . (: ".ccp.o" ".ccp.cc" , ".cc" , , make .cc ', .)
, script, ++.