SBSPSS/build/mkactor.pl
2001-02-27 18:56:34 +00:00

23 lines
598 B
Perl

$OutFile=shift(@ARGV);
$ActorList=shift(@ARGV);
# printf("I got\n0: $OutFile\n1: $ActorList\n");
$OutFile=">$OutFile";
open(OutFile) || die "Can't create makefile $OutFile; $!";
# print <<eot
print OutFile <<eot
$ActorList\:\t\$($ActorList\_OUT)
$ActorList\_IN :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_IN_DIR)/\$(ACTOR)/\$(ACTOR).gin)
$ActorList\_OUT :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_OUT_DIR)/\$(ACTOR).a3d)
\$($ActorList\_OUT) : \$($ActorList\_IN)
\@\$(MKACTOR3D) \$($ActorList\_IN) -o:\$(ACTOR_OUT_DIR) -t:24,1,1 -s:256 -i:\$(INC_DIR) -g:$ActorList
eot
;
close(OutFile);