SBSPSS/build/mkactor.pl

23 lines
519 B
Perl
Raw Normal View History

2001-02-26 22:06:59 +01:00
$OutFile=shift(@ARGV);
2001-04-19 21:54:43 +02:00
$Actor=shift(@ARGV);
2001-02-26 22:06:59 +01:00
2001-04-19 21:54:43 +02:00
# printf("I got\n0: $OutFile\n1: $Actor\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-04-19 21:54:43 +02:00
$Actor\:\t\$($Actor\_OUT)
2001-02-26 23:51:03 +01:00
2001-04-19 21:54:43 +02:00
$Actor\_IN :=\t\$(ACTOR_IN_DIR)/$Actor/\$(ACTOR_SPRITE_DIR)/*
$Actor\_OUT :=\t\$(ACTOR_OUT_DIR)/$Actor.sbk
2001-02-26 22:06:59 +01:00
2001-04-19 21:54:43 +02:00
\$($Actor\_OUT) : \$($Actor\_IN)
2001-06-25 22:18:55 +02:00
\@\$(MKACTOR) -r:\$(ACTOR_IN_DIR) -s:\$(ACTOR_SPRITE_DIR) -o:\$(ACTOR_OUT_DIR) -i:\$(INC_DIR) $Actor \$(MKACTOR_OPTS)
2001-02-26 22:06:59 +01:00
eot
;
close(OutFile);
2001-04-19 21:54:43 +02:00