summaryrefslogtreecommitdiff
path: root/python/makefile.py
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2020-07-17 12:42:05 -0400
committerGitHub <noreply@github.com>2020-07-17 12:42:05 -0400
commit98145f13e228c7a79195788531168c60c1e0f392 (patch)
treeda61850cae1fe23afceb6025d28a624d5227f435 /python/makefile.py
parentd58258e9095761f97bb91cb3b3d1ab8c12447806 (diff)
parent1a798bcb6bf612b36cf37b8584568695fae297c3 (diff)
Merge pull request #6760 from opensourcerouting/build-assorted-20200717
build & gcc-frr-format: assorted bits batch
Diffstat (limited to 'python/makefile.py')
-rw-r--r--python/makefile.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/makefile.py b/python/makefile.py
index 948d3f7391..fe20945ccc 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'):