From 06852b5b5c7f125d0903d5f1039d18d3cdf3482e Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 17 Jul 2020 05:48:25 +0200 Subject: build: fix Makefile rule redefinition Signed-off-by: David Lamparter --- python/makefile.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'python/makefile.py') diff --git a/python/makefile.py b/python/makefile.py index 948d3f739..fe20945cc 100644 --- a/python/makefile.py +++ b/python/makefile.py @@ -73,11 +73,18 @@ while lines: out_lines.append(line) continue - m = make_rule_re.match(line) + full_line = line + full_lines = lines[:] + while full_line.endswith('\\'): + full_line = full_line[:-1] + full_lines.pop(0) + + m = make_rule_re.match(full_line) if m is None: out_lines.append(line) continue + line, lines = full_line, full_lines + target, dep = m.group(1), m.group(2) if target.endswith('.lo') or target.endswith('.o'): -- cgit v1.2.3