File: makedepend.pl

package info (click to toggle)
therion 5.4.3ds1-6
  • links: PTS
  • area: main
  • in suites: buster
  • size: 13,664 kB
  • sloc: ansic: 116,223; cpp: 67,781; tcl: 19,295; perl: 2,002; makefile: 1,107; asm: 219; python: 210; sh: 17
file content (17 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# read make file
open(MF,"Makefile");
@mflines = <MF>;
close(MF);

# backup makefile
open(MFB,">Makefile~");
print MFB @mflines;
close(MFB);

foreach $ln (@mflines) {
  print $ln;
  if ($ln =~ /^\s*\#\s*DEPENDENCIES/) {
    last;
  }
}