prepare.pm modified to do all target in nmake