fix parsing Makefile dependencies when they spanned multiple lines

This commit is contained in:
josh committed 2013-08-05 14:27:57 -04:00
1 parent 3f33336fff
commit 75977981c0
2 files changed
+29 -4

No files matched your search

+5 -4
View File
@@ -212,10 +212,11 @@ module Rscons
if line =~ /^(.*)\\\s*$/
buildup += ' ' + $1
else
if line =~ /^(.*): (.*)$/
target, tdeps = $1.strip, $2
if target == target
deps += tdeps.split(' ').map(&:strip)
buildup += ' ' + line
if buildup =~ /^(.*): (.*)$/
mf_target, mf_deps = $1.strip, $2
if mf_target == target
deps += mf_deps.split(' ').map(&:strip)
end
end
buildup = ''