This commit is contained in:
parent
53cc7f4623
commit
be528e6f01
3 changed files with 17 additions and 46 deletions
|
@ -1,25 +1,20 @@
|
|||
$OutFile=shift(@ARGV);
|
||||
$Actor=shift(@ARGV);
|
||||
$ActorList=shift(@ARGV);
|
||||
|
||||
# printf("I got\n0: $OutFile\n1: $Actor\n");
|
||||
# printf("I got\n0: $OutFile\n1: $ActorList\n");
|
||||
|
||||
$OutFile=">$OutFile";
|
||||
open(OutFile) || die "Can't create makefile $OutFile; $!";
|
||||
# print <<eot
|
||||
print OutFile <<eot
|
||||
ACTOR_$Actor\:\t\$(ACTOR_$Actor\_OUT)
|
||||
$ActorList\:\t\$($ActorList\_OUT)
|
||||
|
||||
ACTOR_$Actor\_IN_DIR :=\t\$(ACTOR_IN_DIR)/$Actor
|
||||
ACTOR_$Actor\_OUT_DIR :=\t\$(ACTOR_OUT_DIR)
|
||||
$ActorList\_IN :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_IN_DIR)/\$(ACTOR)/\$(ACTOR).gin)
|
||||
$ActorList\_OUT :=\t\$(foreach ACTOR,\$($ActorList),\$(ACTOR_OUT_DIR)/\$(ACTOR).a3d)
|
||||
|
||||
ACTOR_$Actor\_IN :=\t\$(ACTOR_$Actor\_IN_DIR)/$Actor.gin
|
||||
ACTOR_$Actor\_OUT :=\t\$(ACTOR_$Actor\_OUT_DIR)/$Actor.a3d
|
||||
|
||||
ACTOR_$Actor\_ANIM_LIST :=\t\$(foreach FILE, \$($Actor\_ANIM_LIST),-a:\$(ACTOR_$Actor\_IN_DIR)/\$(FILE).gin)
|
||||
ACTOR_$Actor\_TEX_LIST :=\t\$(foreach FILE, \$($Actor\_EXTRA_TEX),-x:textures/\$(FILE).bmp)
|
||||
|
||||
\$(ACTOR_$Actor\_OUT) : \$(ACTOR_$Actor\_IN)
|
||||
\@\$(MKACTOR3D) \$(ACTOR_$Actor\_IN) -o:\$(ACTOR_$Actor\_OUT_DIR) -t:24,1,1 -s:256 -i:\$(INC_DIR) \$(ACTOR_$Actor\_TEX_LIST) \$(ACTOR_$Actor\_ANIM_LIST)
|
||||
\$($ActorList\_OUT) : \$($ActorList\_IN)
|
||||
\@\$(MKACTOR3D) \$($ActorList\_IN) -o:\$(ACTOR_OUT_DIR) -t:24,1,1 -s:256 -i:\$(INC_DIR) -g:$ActorList
|
||||
|
||||
|
||||
eot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue