comparison deps.sed @ 0:52694b49dcc4

Initial revision
author Guido Berhoerster <guido+xwrited@berhoerster.name>
date Sun, 27 Apr 2014 23:07:51 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:52694b49dcc4
1 /^[^:]\{1,\}:.*\\$/{
2 h
3 s/\([^:]\{1,\}:\).*/\1/
4 x
5 s/[^:]\{1,\}://
6 }
7 /\\$/,/^$/bgen
8 /\\$/,/[^\\]$/{
9 :gen
10 s/[[:blank:]]*\\$//
11 s/^[[:blank:]]*//
12 G
13 s/\(.*\)\n\(.*\)/\2 \1/
14 }
15 /^[^:]\{1,\}:[[:blank:]]*$/d
16 /^[^:]\{1,\}\.o:/{
17 s/[[:blank:]]*[^[:blank:]]\{1,\}\.[cC][[:blank:]]*/ /g
18 s/[[:blank:]]*[^[:blank:]]\{1,\}\.[cC]$//g
19 s/[[:blank:]]*[^[:blank:]]\{1,\}\.cc[[:blank:]]*/ /g
20 s/[[:blank:]]*[^[:blank:]]\{1,\}\.cc$//g
21 s/[[:blank:]]*[^[:blank:]]\{1,\}\.cpp[[:blank:]]*/ /g
22 s/[[:blank:]]*[^[:blank:]]\{1,\}\.cpp$//g
23 /^[^:]\{1,\}:[[:blank:]]*$/d
24 s/^\([^:]\{1,\}\)\.o[[:blank:]]*:[[:blank:]]*\(.*\)/\1.d: $(wildcard \2)\
25 &/
26 }