1 #!/usr/local/bin/perl -w
2 # Clean the dependency list in a makefile of standard includes...
3 # Written by Ben Laurie <ben@algroup.co.uk> 19 Jan 1999
9 last if /^# DO NOT DELETE THIS LINE/;
16 my ($dummy, $file,$deps)=/^((.*):)? (.*)$/;
17 $thisfile=$file if defined $file;
18 next if !defined $deps;
19 my @deps=split ' ',$deps;
20 @deps=grep(!/^\//,@deps);
21 @deps=grep(!/^\\$/,@deps);
22 push @{$files{$thisfile}},@deps;
26 foreach $file (sort keys %files) {
29 foreach $dep (sort @{$files{$file}}) {
30 $len=0 if $len+length($dep)+1 >= 80;