SBSPSS/build/mkactor.pl

23 lines
602 B
Perl
Raw Normal View History

2001-02-26 22:06:59 +01:00
$OutFile=shift(@ARGV);
2001-02-27 19:56:34 +01:00
$ActorList=shift(@ARGV);
2001-02-26 22:06:59 +01:00
2001-02-27 19:56:34 +01:00
# printf("I got\n0: $OutFile\n1: $ActorList\n");
2001-02-26 22:06:59 +01:00
$OutFile=">$OutFile";
open(OutFile) || die "Can't create makefile $OutFile; $!";
2001-02-26 23:51:03 +01:00
# print <<eot
2001-02-26 22:06:59 +01:00
print OutFile <<eot
2001-02-27 19:56:34 +01:00
$ActorList\:\t\$($ActorList\_OUT)
2001-02-26 23:51:03 +01:00
2001-02-27 19:56:34 +01:00
$ActorList\_IN :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_IN_DIR)/\$(ACTOR)/\$(ACTOR).gin)
$ActorList\_OUT :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_OUT_DIR)/\$(ACTOR).a3d)
2001-02-26 22:06:59 +01:00
2001-02-27 19:56:34 +01:00
\$($ActorList\_OUT) : \$($ActorList\_IN)
2001-02-27 21:14:00 +01:00
\@\$(MKACTOR3D) \$($ActorList\_IN) -o:\$(ACTOR_OUT_DIR) \$($ActorList\_OPTS) -i:\$(INC_DIR) -g:$ActorList
2001-02-26 22:06:59 +01:00
eot
;
close(OutFile);