From revision 1.6, 2001-03-08 13:27 bodo:
Throw out *all* absolute pathnames, not matter what they look like. The filenames we are interested in for Makefile dependencies are always relative.
This commit is contained in:
parent
e8acf5c6f8
commit
cfb8afc558
@ -15,8 +15,8 @@ while(<STDIN>) {
|
|||||||
my ($file,$deps)=/^(.*): (.*)$/;
|
my ($file,$deps)=/^(.*): (.*)$/;
|
||||||
next if !defined $deps;
|
next if !defined $deps;
|
||||||
my @deps=split ' ',$deps;
|
my @deps=split ' ',$deps;
|
||||||
@deps=grep(!/^\/usr\/include/,@deps);
|
@deps=grep(!/^\//,@deps);
|
||||||
@deps=grep(!/^\/usr\/lib\/gcc-lib/,@deps);
|
@deps=grep(!/^\\$/,@deps);
|
||||||
push @{$files{$file}},@deps;
|
push @{$files{$file}},@deps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user