Fix auto-dependency bug.
[platform/upstream/binutils.git] / bfd / dep-in.sed
1 :loop
2 /\\$/N
3 s/\\\n */ /g
4 t loop
5
6 s!\.o:!.lo:!
7 s! @BFD_H@!!g
8 s!@INCDIR@!$(INCDIR)!g
9 s!@SRCDIR@/!!g
10 s! hosts/[^ ]*\.h! !g
11 s/ sysdep.h//g
12 s! \.\./bfd/sysdep.h!!g
13 s/ libbfd.h//g
14 s/ config.h//g
15 s! \$(INCDIR)/fopen-[^ ]*\.h!!g
16 s! \$(INCDIR)/ansidecl\.h!!g
17
18 s/\\\n */ /g
19
20 s/ *$//
21 s/  */ /g
22 s/ *:/:/g
23 /:$/d
24
25 s/\(.\{50\}[^ ]*\) /\1 \\\
26   /g