X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a699eb41b9aa738514f36a8e5f3007495a52b05b..c0458cfc4d0ebd1aa09064152749cba21aa436e1:/mkfiles.pl diff --git a/mkfiles.pl b/mkfiles.pl index 830de491..b38a218b 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -88,7 +88,9 @@ while () { } if ($_[0] eq "!forceobj") { $forceobj{$_[1]} = 1; next; } if ($_[0] eq "!begin") { - if (&mfval($_[1])) { + if ($_[1] =~ /^>(.*)/) { + $divert = \$auxfiles{$1}; + } elsif (&mfval($_[1])) { $sect = $_[2] ? $_[2] : "end"; $divert = \($makefile_extra{$_[1]}->{$sect}); } else { @@ -145,6 +147,12 @@ while () { close IN; +foreach $aux (sort keys %auxfiles) { + open AUX, ">$aux"; + print AUX $auxfiles{$aux}; + close AUX; +} + # Now retrieve the complete list of objects and resource files, and # construct dependency data for them. While we're here, expand the # object list for each program, and complain if its type isn't set.