comparison deps.sed @ 0:a7e41e1a79c8

Initial revision
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Thu, 19 Jan 2017 22:39:51 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a7e41e1a79c8
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 }