SBSPSS/build/mkactor.pl
2001-06-25 20:18:55 +00:00

23 lines
519 B
Perl

$OutFile=shift(@ARGV);
$Actor=shift(@ARGV);
# printf("I got\n0: $OutFile\n1: $Actor\n");
$OutFile=">$OutFile";
open(OutFile) || die "Can't create makefile $OutFile; $!";
# print <<eot
print OutFile <<eot
$Actor\:\t\$($Actor\_OUT)
$Actor\_IN :=\t\$(ACTOR_IN_DIR)/$Actor/\$(ACTOR_SPRITE_DIR)/*
$Actor\_OUT :=\t\$(ACTOR_OUT_DIR)/$Actor.sbk
\$($Actor\_OUT) : \$($Actor\_IN)
\@\$(MKACTOR) -r:\$(ACTOR_IN_DIR) -s:\$(ACTOR_SPRITE_DIR) -o:\$(ACTOR_OUT_DIR) -i:\$(INC_DIR) $Actor \$(MKACTOR_OPTS)
eot
;
close(OutFile);