Throw out *all* absolute pathnames, not matter what they look like.
authorBodo Möller <bodo@openssl.org>
Thu, 8 Mar 2001 12:27:44 +0000 (12:27 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 8 Mar 2001 12:27:44 +0000 (12:27 +0000)
The filenames we are interested in for Makefile dependencies
are always relative.

util/clean-depend.pl

index c37d985..d2b7828 100755 (executable)
@@ -17,8 +17,7 @@ while(<STDIN>) {
     $thisfile=$file if defined $file;
     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{$thisfile}},@deps;
 }