comparison deps.sed @ 35:b84b4ae937e3

Fix automatic dependency generation and improve portability
author Guido Berhoerster <gber@opensuse.org>
date Fri, 07 Feb 2014 17:55:13 +0100
parents
children
comparison
equal deleted inserted replaced
34:6049c7540dba 35:b84b4ae937e3
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 }