comparison deps.sed @ 11:4df0dc4dcc3d

Fix automatic dependency generation and improve portability
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Fri, 07 Feb 2014 17:54:41 +0100
parents
children
comparison
equal deleted inserted replaced
10:d3e7ff315d98 11:4df0dc4dcc3d
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 }