Add depfile support to build command with multiple outputs (Fixes: #61)
authorQingning Huo <qingninghuo@gmail.com>
Tue, 6 Sep 2011 19:46:32 +0000 (20:46 +0100)
committerQingning Huo <qingninghuo@gmail.com>
Tue, 6 Sep 2011 19:46:32 +0000 (20:46 +0100)
commit8efe599247c762caa6da54a1c10e37c538319669
tree9a159b956cbb35c85d966f026e0b63ad713c862f
parente292718907a60c464dbe471ccdc7014731a4b6a2
Add depfile support to build command with multiple outputs (Fixes: #61)

parsers.cpp: allow depfile used at build command with multiple outputs.
graph.cpp: allow depfile used at build command with multiple outputs.
parsers_test.cpp: make the test pass.

As before, the depfile itself can only mention one target, which must
be the first of a build command with multiple outpus.

[There is really no need to mention all the output in the depfile,
because all targets should depend on exactly the same files anyway,
because these targets are built by a single build command.]
src/graph.cc
src/parsers.cc
src/parsers_test.cc