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
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ while(<STDIN>) {
|
|||
my ($file,$deps)=/^(.*): (.*)$/;
|
||||
next if !defined $deps;
|
||||
my @deps=split ' ',$deps;
|
||||
@deps=grep(!/^\/usr\/include/,@deps);
|
||||
@deps=grep(!/^\/usr\/lib\/gcc-lib/,@deps);
|
||||
@deps=grep(!/^\//,@deps);
|
||||
@deps=grep(!/^\\$/,@deps);
|
||||
push @{$files{$file}},@deps;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue