forked from len0rd/rockbox
Support split target.o:source.c lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19184 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9701ffbe23
commit
40d95f4574
1 changed files with 15 additions and 0 deletions
|
@ -15,6 +15,8 @@ use File::Basename;
|
||||||
my $rbroot = $ARGV[0];
|
my $rbroot = $ARGV[0];
|
||||||
my $builddir = $ARGV[1];
|
my $builddir = $ARGV[1];
|
||||||
|
|
||||||
|
my $target2;
|
||||||
|
|
||||||
for (<STDIN>) {
|
for (<STDIN>) {
|
||||||
if (/^([^:]+): (\S+) (.*)/) {
|
if (/^([^:]+): (\S+) (.*)/) {
|
||||||
my ($target, $src, $rest) = ($1, $2, $3);
|
my ($target, $src, $rest) = ($1, $2, $3);
|
||||||
|
@ -22,6 +24,19 @@ for (<STDIN>) {
|
||||||
$dir =~ s/$rbroot//;
|
$dir =~ s/$rbroot//;
|
||||||
print "$builddir$dir/$target: $src $rest\n";
|
print "$builddir$dir/$target: $src $rest\n";
|
||||||
}
|
}
|
||||||
|
elsif (/^([^:]+): \\/) {
|
||||||
|
# target and source on different lines
|
||||||
|
$target2 = $1;
|
||||||
|
}
|
||||||
|
elsif ($target2) {
|
||||||
|
if (/^\s+([^ ]+) (.*)/) {
|
||||||
|
my ($src, $rest) = ($1, $2);
|
||||||
|
my $dir = dirname $src;
|
||||||
|
$dir =~ s/$rbroot//;
|
||||||
|
print "$builddir$dir/$target2: $src $rest\n";
|
||||||
|
$target2 = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
print $_;
|
print $_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue